public void LongestWordLengthIsZeroForEmptyString() { var command = new WriteCommand(string.Empty); Assert.That(command.GetLongestWordLength(4), Is.EqualTo(0)); }
public void WriteCommandReplaysWriteOperation() { var command = new WriteCommand("text"); command.Replay(_buffer); Approvals.Verify(_buffer.ToLines().JoinWith(Environment.NewLine)); }
public void LongestWordLengthIsReturned() { var command = new WriteCommand("Test text with one longer word."); Assert.That(command.GetLongestWordLength(4), Is.EqualTo("longer".Length)); }