Пример #1
0
        public void FindWordMatches_CountsUserWordInPhrase_Int()
        {
            RepeatCounter newCounter = new RepeatCounter();

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