public void TestPolx() { var test = new StringMatches(); List <int> expexted = new List <int>() { }; CollectionAssert.AreEqual(expexted, test.SubtextMatches("Polly put the kettle on, polly put the kettle on, polly put the kettle on we'll all have tea", "Polx")); }
public void TestSheSellsSeaShells() { var test = new StringMatches(); List <int> expexted = new List <int>() { 11, 28, 70 }; CollectionAssert.AreEqual(expexted, test.SubtextMatches("She sells seashells by the seashore. The shells she sells are surely seashells", "sea")); }
public void TestPeterPiper() { var test = new StringMatches(); List <int> expexted = new List <int>() { 1, 51 }; CollectionAssert.AreEqual(expexted, test.SubtextMatches("Peter Piper picked a peck of pickled peppers. Did Peter Piper pick a peck of pickled peppers", "Peter")); }