public void Then_the_result_should_be_empty() { var stringCutter = new StringCutter(""); var result = stringCutter.CutToArray(); result.ShouldBeEmpty(); }
public void Then_the_result_should_be_the_single_character() { var stringCutter = new StringCutter("a"); var result = stringCutter.CutToArray(); result.Length.ShouldBe(1); result[0].ShouldBe("a"); }
public void Then_the_result_should_be_an_array_of_progressively_chopped_strings() { var stringCutter = new StringCutter("hello"); var result = stringCutter.CutToArray(); result.Length.ShouldBe(5); result[0].ShouldBe("hello"); result[1].ShouldBe("hell"); result[2].ShouldBe("hel"); result[3].ShouldBe("he"); result[4].ShouldBe("h"); }