public void LeftArrowThenInsertNewCharacterInsertsText() { textEditor.RaiseKeyPressEvent('a'); textEditor.RaiseKeyPressEvent('b'); textEditor.RaiseDialogKeyPressEvent(Keys.Left); textEditor.RaiseKeyPressEvent('c'); Assert.AreEqual("acb", console.GetCurrentLine()); }
public void CurrentLineIsEmpty() { Assert.AreEqual(String.Empty, RubyConsole.GetCurrentLine()); }
public void CurrentLineAfterUpArrowKeyPressed() { textEditor.RaiseDialogKeyPressEvent(Keys.Up); Assert.AreEqual("bc", RubyConsole.GetCurrentLine()); }