예제 #1
0
        public void CompareWords_VerifyWordMatchesSameWithDifferentCase_True()
        {
            int         total          = 0;
            string      word01         = "and";
            string      word02         = "And";
            WordCounter newWordCounter = new WordCounter(total, word01, word02);

            Assert.AreEqual(true, newWordCounter.CompareWords(word02));
        }
예제 #2
0
        public void CompareWords_VerifyDifferentWordsDoNotMatch_False()
        {
            int         total          = 0;
            string      word01         = "and";
            string      word02         = "but";
            WordCounter newWordCounter = new WordCounter(total, word01, word02);

            Assert.AreEqual(false, newWordCounter.CompareWords(word02));
        }
예제 #3
0
        public void CompareWords_VerifyMultipleLetterWordMatchesSame_True()
        {
            int         total          = 0;
            string      word01         = "and";
            string      word02         = "and";
            WordCounter newWordCounter = new WordCounter(total, word01, word02);

            Assert.AreEqual(true, newWordCounter.CompareWords(word02));
        }