public void RepeatCounter_CountsWordsRegardlessOfPunctuation_Int() { //This method will test if our repeat Counter can count words regardless of punctuation . //Arrange RepeatCounter testRepeatCounter = new RepeatCounter("Hello", "Hello, im hailey. Say hello to your mother for me"); //Act int expected = 2; int actual = testRepeatCounter.CountWord().TrimPunctuation(); //Assert Assert.AreEqual(expected, actual); }
public void RepeatCounter_CountsWordsInUpperOrLower_Int() { //This method will test if our repeat Counter can count words in upper and lower case. //Arrange RepeatCounter testRepeatCounter = new RepeatCounter("Hi", "Hi, im hailey. Say hi to your mother for me"); //Act int expected = 2; int actual = testRepeatCounter.CountWord(); //Assert Assert.AreEqual(expected, actual); }