예제 #1
0
        public void CountMatchesInSentence_WordEqualsArrayWord_Integer()
        {
            // Arrange
            string inputWord     = "dog";
            string inputSentence = "Dog is God in reverse. I have a crazy cattle dog. His name is Blue and he is cute af.";
            // Act
            int result = RepeatCounter.CountMatchesInSentence(inputWord, inputSentence);

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