public void RepeatCounterMethod_ForOne_Word() { //Arrange string word = "manasa"; WordCounter word1 = new WordCounter(word, word); //Act int result = word1.GetRepeatCounter(); //Assert Assert.AreEqual(1, result); }
public void GetRepeatCounterMethod_ForFour_Words() { //Arrange string word = "the"; string sentence = "the The THe thE ."; WordCounter word1 = new WordCounter(word, sentence); //Act int result = word1.GetRepeatCounter(); //Assert Assert.AreEqual(4, result); }
public void GetRepeatCounterMethod_ForNoSentence() { //Arrange string word = "the"; string sentence = ""; WordCounter word1 = new WordCounter(word, sentence); //Act int result = word1.GetRepeatCounter(); //Assert Assert.AreEqual(0, result); }
public void GetRepeatCounterMethod_ForTwo_Words() { //Arrange string word = "cat"; string sentence = "I am walking my cat to the cathedral.I love my cat ."; WordCounter word1 = new WordCounter(word, sentence); //Act int result = word1.GetRepeatCounter(); //Assert Assert.AreEqual(2, result); }