public void CheckMatches_ExcludePartialMatches_Int() { RepeatCounter testRepeatCounter = new RepeatCounter("cat", "The word 'concatenate' and Catman contain the word 'cat'."); Assert.AreEqual(1, testRepeatCounter.CheckMatches()); }
public void CheckMatches_ReturnsCaseInsensitiveMatches_Int() { RepeatCounter testRepeatCounter = new RepeatCounter("C", "Cat starts with 'C'."); Assert.AreEqual(1, testRepeatCounter.CheckMatches()); }
public void CheckMatches_ReturnsMatchesForStrings_Int() { RepeatCounter testRepeatCounter = new RepeatCounter("cat", "Does the cat from 'The Cat in the Hat' have a real name?"); Assert.AreEqual(2, testRepeatCounter.CheckMatches()); }
public void CheckMatches_ReturnsMatchesForCharAndString_Int() { RepeatCounter testRepeatCounter = new RepeatCounter("c", "cat starts with 'c'."); Assert.AreEqual(1, testRepeatCounter.CheckMatches()); }
public void CheckMatches_ReturnsNoMatchForString_Int() { RepeatCounter testRepeatCounter = new RepeatCounter("cat", "dog"); Assert.AreEqual(0, testRepeatCounter.CheckMatches()); }
public void CheckMatches_ReturnsNoMatchForChar_Int() { RepeatCounter testRepeatCounter = new RepeatCounter("c", "d"); Assert.AreEqual(0, testRepeatCounter.CheckMatches()); }
public void CheckMatches_ExcludeWordLongerThanSentence_Int() { RepeatCounter testRepeatCounter = new RepeatCounter("concatinate", "cat"); Assert.AreEqual(0, testRepeatCounter.CheckMatches()); }
public void CheckMatches_ExcludeNonLetterStrings_Int() { RepeatCounter testRepeatCounter = new RepeatCounter("&&k&", "The word 'concatenate' and Catman contain the word 'cat'."); Assert.AreEqual(0, testRepeatCounter.CheckMatches()); }