public void FindFirstOccurrence_IndexCheck(string t, string p, int expectedIndex) { var resultIndex = BoyerMoore.FindFirstOccurrence(t, p); Assert.AreEqual(resultIndex, expectedIndex); }