public void WriteLine_WriteLineWithText_TextPlusNewLineWritten()
        {
            TestableScriptingConsole.WriteLine("test", ScriptingStyle.Out);
            string expectedText = "test" + Environment.NewLine;

            Assert.AreEqual(expectedText, FakeConsoleTextEditor.Text);
        }
        public void SetUpFixture()
        {
            base.CreateConsole();
            TestableScriptingConsole.WriteLine(prompt, ScriptingStyle.Prompt);

            FakeConsoleTextEditor.RaisePreviewKeyDownEvent(Key.A);
            showCompletionWindowCalledBeforeDotTypedIn = FakeConsoleTextEditor.IsShowCompletionWindowCalled;
            FakeConsoleTextEditor.RaisePreviewKeyDownEvent(Key.OemPeriod);
        }
 public void WriteLine_WriteLine_NewLineWritten()
 {
     TestableScriptingConsole.WriteLine();
     Assert.AreEqual(Environment.NewLine, FakeConsoleTextEditor.Text);
 }