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