Exemplo n.º 1
0
        public void FindWordMatches_CountsUserWordInPhrase_Int()
        {
            WordCounter newCounter = new WordCounter();

            newCounter.SetUserWord("goblins");
            newCounter.SetScrubbedPhrase("the goblins are everywhere dont get surrounded by the goblins");
            newCounter.FindWordMatches();
            Assert.AreEqual(2, newCounter.GetWordCount());
        }