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); }