public void Test_insert_linefeed_if_line_is_longer_than(string text, int lineLength, string expected) { var cut = new WordWrapService(); var actual = cut.WordWrap(text, lineLength); Assert.Equal(expected, actual); }
public void Test_insert_linefeed_instead_of_space(string text, string expected) { var cut = new WordWrapService(); var actual = cut.WordWrap(text, 1); Assert.Equal(expected, actual); }