Beispiel #1
0
        public void CheckWord_VerifyWordContainsAlphabetOnly_False()
        {
            int         total          = 0;
            string      word           = "%";
            string      sentence       = "";
            WordCounter newWordCounter = new WordCounter(total, word, sentence);

            Assert.AreEqual(false, newWordCounter.CheckWord());
        }
Beispiel #2
0
        public void CheckWord_VerifyWordContainsApostropheIsWord_True()
        {
            int         total          = 0;
            string      word           = "can't";
            string      sentence       = "";
            WordCounter newWordCounter = new WordCounter(total, word, sentence);

            Assert.AreEqual(true, newWordCounter.CheckWord());
        }
Beispiel #3
0
        public void CheckWord_VerifyEmptyString_False()
        {
            int         total          = 0;
            string      word           = "";
            string      sentence       = "";
            WordCounter newWordCounter = new WordCounter(total, word, sentence);

            Assert.AreEqual(false, newWordCounter.CheckWord());
        }