Beispiel #1
0
        public void WordCounting_IgnoresCase_Int()
        {
            WordCounting testWordCount = new WordCounting("love", "I love love LOVE C Sharp");

            Assert.AreEqual(3, testWordCount.matchCounter(testWordCount.QueryWord, testWordCount.ArrayFromSentence));
        }
Beispiel #2
0
        public void WordCounting_SaysNoMatches_Int()
        {
            WordCounting testWordCount = new WordCounting("hate", "I love love LOVE C Sharp");

            Assert.AreEqual(0, testWordCount.matchCounter(testWordCount.QueryWord, testWordCount.ArrayFromSentence));
        }
Beispiel #3
0
        public void WordCounting_CountsWordMatches_Int()
        {
            WordCounting testWordCount = new WordCounting("love", "I love love C Sharp");

            Assert.AreEqual(2, testWordCount.matchCounter(testWordCount.QueryWord, testWordCount.ArrayFromSentence));
        }