示例#1
0
            public void Then_the_result_should_be_empty()
            {
                var stringCutter = new StringCutter("");

                var result = stringCutter.CutToArray();

                result.ShouldBeEmpty();
            }
示例#2
0
            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");
            }
示例#3
0
            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");
            }