ConsoleTests CreateConsole Method Delta Engine Documentation

Namespace: DeltaEngine.Scenes.Terminal.Tests
Assembly: DeltaEngine.Scenes.Terminal.Tests (in DeltaEngine.Scenes.Terminal.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void CreateConsole()
Examples

[Test]
public void CreateConsole()
{
    if (!IsMockResolver)
        return; //ncrunch: no coverage
    Assert.AreEqual(0.01f, console.DrawArea.Left);
    Assert.AreEqual(0.1f, console.DrawArea.Top);
    Assert.AreEqual(0.99f, console.DrawArea.Right);
    Assert.AreEqual(0.98f, console.DrawArea.Width);
    Assert.AreEqual(0.352f, console.DrawArea.Bottom);
    Assert.IsTrue(console.IsEnabled);
    Assert.AreEqual(Console.EnabledBackgroundColor, console.Color);
}
See Also