public void AppendsTextToCurrentLineTwice()
        {
            var terminal = new ClientTerminal();

            terminal.AppendToCurrentLine("hello");
            terminal.AppendToCurrentLine("world");

            Assert.AreEqual("helloworld", terminal.GetCurrentLine());
        }
        public void AppendsSingleCharacterToString()
        {
            var terminal = new ClientTerminal();

            terminal.AppendToCurrentLine('h');

            Assert.AreEqual("h", terminal.GetCurrentLine());
        }
        public void BufferEmptyAfterAppendingToCurrentLine()
        {
            var terminal = new ClientTerminal();

            terminal.AppendToCurrentLine("hello");

            Assert.AreEqual(0, terminal.GetBuffer().Count);
        }
        public void BackspaceRemovesOneCharacterFromCurrentLine()
        {
            var terminal = new ClientTerminal();

            terminal.AppendToCurrentLine("world");
            terminal.Backspace();

            Assert.AreEqual("worl", terminal.GetCurrentLine());
        }
        public void CurrentLineIsEmptyAfterWritingIntoBuffer()
        {
            var terminal = new ClientTerminal();

            terminal.AppendToCurrentLine("hello");
            terminal.WriteCurrentLine(TerminalStyle.Default);

            Assert.AreEqual("", terminal.GetCurrentLine());
        }
        public void WritesCurrentLineIntoBuffer()
        {
            var terminal = new ClientTerminal();

            terminal.AppendToCurrentLine("hello");
            terminal.WriteCurrentLine(TerminalStyle.Default);

            Assert.AreEqual(1, terminal.GetBuffer().Count);
            Assert.AreEqual("hello", terminal.GetBuffer()[0].Message);
        }