public void ContainsWord_ReturnsFalseForSentenceNotContainingWord_Boolean() { RepeatCounter newRepeatCounter = new RepeatCounter("cat", "My black dog loves me"); bool actual = newRepeatCounter.ContainsWord(); Assert.IsFalse(actual); }
public void ContainsWord_ChecksStringForWord_bool() { RepeatCounter test = new RepeatCounter(); string sentence = "Hello cat"; string word = "Hell"; bool result = test.ContainsWord(sentence, word); Assert.IsFalse(result); }