public void CompareWords_CompareCatandCat_2() { List <string> inputList = new List <string> { "the", "cat", "has", "cat", "hat" }; string inputString = "cat"; int result = RepeatCounter.CompareWords(inputString, inputList); Assert.AreEqual(2, result); }