ConsoleTests PressingCursorUpTwiceThenCursorDownGetsTheLastCommand 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 PressingCursorUpTwiceThenCursorDownGetsTheLastCommand()
Examples

[Test, CloseAfterFirstFrame]
public void PressingCursorUpTwiceThenCursorDownGetsTheLastCommand()
{
    if (keyboard == null)
        return; //ncrunch: no coverage
    PressKeys(new List<Key>
    { Key.D1, Key.Enter, Key.D2, Key.Enter, Key.CursorUp, Key.CursorUp, Key.CursorDown });
    Assert.AreEqual("> 2_", console.command.Text);
}
See Also