예제 #1
0
        public void CountRepeatWords_ValidateWordCountMethod_int()
        {
            //Arrange
            string        word             = "apple";
            string        sentence         = "apple apple";
            RepeatCounter newRepeatCounter = new RepeatCounter(sentence, word);

            //Act
            int result = newRepeatCounter.CountRepeatWords();

            //Assert
            Assert.AreEqual(2, result);
        }