public void CreateStringWithNoMatchingCharactersSecond() { var message = "hruth is nowhere because it is miss spelled"; var wordToFind = "truth"; var bmhp = new BoyerMooreHorspool(message); var result = bmhp.Found(wordToFind); Assert.IsFalse(result); }
public void CreateStringWithMatchingCharactersAtEnd() { var message = "we have found the truth"; var wordToFind = "truth"; var bmhp = new BoyerMooreHorspool(message); var result = bmhp.Found(wordToFind); Assert.IsTrue(result); }
public void CreateStringWithMatchingCharactersAtStart() { var message = "truth is everywhere"; var wordToFind = "truth"; var bmhp = new BoyerMooreHorspool(message); var result = bmhp.Found(wordToFind); Assert.IsTrue(result); }