public void WritesMessageToBuffer() { var terminal = new ClientTerminal(); terminal.WriteLine("hello"); Assert.AreEqual(1, terminal.GetBuffer().Count); Assert.AreEqual("hello", terminal.GetBuffer()[0].Message); }
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); }
public void BufferEmptyAfterAppendingToCurrentLine() { var terminal = new ClientTerminal(); terminal.AppendToCurrentLine("hello"); Assert.AreEqual(0, terminal.GetBuffer().Count); }
public void StartsWithEmptyBuffer() { var terminal = new ClientTerminal(); Assert.AreEqual(0, terminal.GetBuffer().Count); }