public void Matches(string pattern, string target, IEnumerable <int> indexes) { var kmp = KMP.Create(pattern); kmp.Matches(target).ToList().Should().Equal(indexes); }