public void BackspaceRemovesNothingOnEmptyCurrentLine() { var terminal = new ClientTerminal(); terminal.Backspace(); Assert.AreEqual("", terminal.GetCurrentLine()); }
public void BackspaceRemovesOneCharacterFromCurrentLine() { var terminal = new ClientTerminal(); terminal.AppendToCurrentLine("world"); terminal.Backspace(); Assert.AreEqual("worl", terminal.GetCurrentLine()); }