public void tc1() { string test = "test"; int colLength = 7; string res = _sut.Wrap(test, colLength); Assert.NotNull(res); Assert.NotEmpty(res); Assert.Equal("test", res); }
static void Main(string[] args) { WordWrap wordWrap = new WordWrap(); Console.WriteLine("Word Wrap - Function Kata"); Console.WriteLine("Please insert a Sentence, you want to wrap:"); var textInput = Console.ReadLine(); Console.WriteLine("Thank you. Please specify the amount of letters before wrapping:"); var maxLengthInput = Convert.ToInt32(Console.ReadLine()); Console.WriteLine(wordWrap.Wrap(textInput, maxLengthInput)); Console.ReadKey(); }