Exemple #1
0
        public void CountWordInSentence_CountsWordsInSentence_Int()
        {
            string        testWord         = "tarfle";
            string        testSentence     = "barfle snarfle tarfle darfle tarfle";
            RepeatCounter newRepeatCounter = new RepeatCounter(testSentence);

            newRepeatCounter.CountWordInSentence(testWord);
            int result = newRepeatCounter.CountWordInSentence(testWord);

            Assert.AreEqual(2, result);
        }