public void Then_the_output_should_be_3_28_53_78_82() { const string subtext = "ll"; var output = new[] { 3, 28, 53, 78, 82 }; var textMatcher = new TextMatcher(_text, subtext); textMatcher.Match(); var matches = textMatcher.GetMatches(); matches.should_have_count(5); foreach (var match in matches) { output.should_contain(match.StartPosition); } }
public void Then_the_output_should_be_1_26_51() { const string subtext = "polly"; var output = new[] { 1, 26, 51 }; var textMatcher = new TextMatcher(_text, subtext); textMatcher.Match(); var matches = textMatcher.GetMatches(); matches.should_have_count(3); foreach (var match in matches) { output.should_contain(match.StartPosition); } }