public void ConsoleState_resetCursor()
        {
            var console = ConsoleTester.BuildConsole();
            var state   = new ConsoleState(console);

            console.WriteLine("Hello");
            Assert.IsTrue(console.CursorTop != state.CursorTop);
            Assert.IsTrue(console.CursorLeft != state.CursorLeft);

            state.ResetCursor();
            Assert.IsTrue(console.CursorTop == state.CursorTop);
            Assert.IsTrue(console.CursorLeft == state.CursorLeft);
        }
        public void ConsoleState_resetColors()
        {
            var console = ConsoleTester.BuildConsole();
            var state   = new ConsoleState(console);

            var fg = state.ForeColor;
            var bg = state.BackColor;

            console.BackgroundColor = ConsoleColor.Black;
            console.ForegroundColor = ConsoleColor.White;

            Assert.IsTrue(console.BackgroundColor != state.BackColor);
            Assert.IsTrue(console.ForegroundColor != state.ForeColor);

            state.ResetColors();

            Assert.IsTrue(console.BackgroundColor == bg);
            Assert.IsTrue(console.ForegroundColor == fg);
            Assert.IsTrue(state.BackColor == bg);
            Assert.IsTrue(state.ForeColor == fg);
        }