예제 #1
0
        public void GetNumberOfOccurences_ReturnZeroForNoOccurences_True()
        {
            RepeatCounter newGame = new RepeatCounter();
            string        word    = "bobby";

            newGame.SetTheWord(word);
            string[] words = new string[] { "hello", "nice", "to", "meet", "you", "hello" };
            newGame.SetWordsFromArrayDictionary(words);
            Assert.AreEqual(0, newGame.FindTheNumberOfOccurences());
        }