Example #1
0
 public void FindWord_FindsWordInStringOfMultipleWords_DisplaysTrueIfFound()
 {
     // Arrange
       string testWord = "antelope";
       string testString = "An antelope is like a gazelle in a way but it begins with an A actually.";
       RepeatCounter testRepeatCounter = new RepeatCounter(testWord, testString);
       // Act
       string resultString = testRepeatCounter.FindWord(testWord, testString);
       // Assert
       Console.WriteLine("Spec 4 expected: " + testString + " Spec 4 actual: " + resultString);
       Assert.Equal(resultString, "True");
 }