public void CheckOccurence_GetCheckForOccurrence_True() { //Arrange string word = "car"; string word2 = "card"; string sentence = "I need to buy a new car."; RepeatCounter userInput = new RepeatCounter(word, sentence); //Act string userWord = userInput.GetUserWord(); string userSentence = userInput.GetUserSentence(); bool resultCheckBool = userInput.CheckBoolOccurence(userWord, userSentence); bool resultCheckBool2 = userInput.CheckBoolOccurence(word2, userSentence); //Assert Assert.AreEqual(true, resultCheckBool); Assert.AreEqual(false, resultCheckBool2); }