public void SetUpFixture() { textEditor = new MockTextEditor(); console = new RubyConsole(textEditor, null); console.WriteLine(prompt, Style.Prompt); textEditor.RaiseKeyPressEvents("a"); showCompletionWindowCalledBeforeDotTypedIn = textEditor.IsShowCompletionWindowCalled; textEditor.RaiseKeyPressEvent('.'); }
public void WriteLine() { RubyConsole.WriteLine(); Assert.AreEqual(Environment.NewLine, mockTextEditor.Text); }