Exemplo n.º 1
0
        public void SecondTry_Word_This_With_3_Occurrences()
        {
            string sentence = "This is my sentence and I can write anything one this sentence because this is mine!";
            string word     = "this";

            var myWordFrequencies = new WordFrequencies(sentence);

            int count = myWordFrequencies.SecondTry(word);

            Assert.Equal(3, count);
        }
Exemplo n.º 2
0
        public void SecondTry_Basic_Test()
        {
            string sentence = "This is my sentence and I can write anything one this sentence because this is mine!";
            string word     = "sentence";

            var myWordFrequencies = new WordFrequencies(sentence);

            int count = myWordFrequencies.SecondTry(word);

            Assert.Equal(2, count);
        }