public void SendLine_NoUnreadLines_AddsLineToUnreadLines()
        {
            SendLineToConsole("test");
            string[] unreadLines = TestableScriptingConsole.GetUnreadLines();

            string[] expectedUnreadlines = new string[] { "test" };

            Assert.AreEqual(expectedUnreadlines, unreadLines);
        }
        public void AddOneLine()
        {
            FakeConsoleTextEditor.RaisePreviewKeyDownEvent(System.Windows.Input.Key.A);
            FakeConsoleTextEditor.RaisePreviewKeyDownEventForDialogKey(System.Windows.Input.Key.Enter);

            string[] lines         = TestableScriptingConsole.GetUnreadLines();
            string[] expectedLines = new string[] { "A" };

            Assert.AreEqual(expectedLines, lines);
            Assert.IsTrue(TestableScriptingConsole.IsLineAvailable);
        }
        public void NoUnreadLinesAtStart()
        {
            int length = TestableScriptingConsole.GetUnreadLines().Length;

            Assert.AreEqual(0, length);
        }