Beispiel #1
0
        public void RemoveSomePunctuation_VerifyWordWithoutPunctuationUnchanged_String()
        {
            int         total          = 0;
            string      word           = "test";
            string      sentence       = "";
            string      expectedResult = "test";
            WordCounter newWordCounter = new WordCounter(total, word, sentence);
            string      actualResult   = newWordCounter.RemoveSomePunctuation(word);

            Assert.AreEqual(expectedResult, actualResult);
        }
Beispiel #2
0
        public void RemoveSomePunctuation_VerifyBeginningPunctuationRemoved_String()
        {
            int         total          = 0;
            string      word           = "\"Word";
            string      sentence       = "";
            string      expectedResult = "Word";
            WordCounter newWordCounter = new WordCounter(total, word, sentence);
            string      actualResult   = newWordCounter.RemoveSomePunctuation(word);

            Assert.AreEqual(expectedResult, actualResult);
        }