Exemple #1
0
        public void DowncaseAndScrubPhrase_DowncasesUserPhrase_String()
        {
            WordCounter newCounter = new WordCounter();
            string      phrase     = "This is the end, the END my friend.";

            newCounter.SetUserPhrase(phrase);
            newCounter.DowncaseAndScrubPhrase();
            string expectedOutput = "this is the end the end my friend";

            Assert.AreEqual(expectedOutput, newCounter.GetScrubbedPhrase());
        }