Esempio n. 1
0
        public void CountOccurences_DisplayTimesWordIsFound_NumberOfTimes()
        {
            RepeatCounter repeat = new RepeatCounter();
            string        word   = "day";

            string[] phrase = repeat.SplitPhrase("this is a great day day day day day");
            Assert.AreEqual(5, repeat.CountOccurences(word, phrase));
        }