Exemple #1
0
        public void CheckForWord_ReturnsTrueIfWordIsInSentence_DefinedVariable()
        {
            //arrange
            string testWord     = "you";
            string testSentence = "Hey you, man";
            bool   wordFound    = true;
            //act
            RepeatCounter newInput = new RepeatCounter(testWord, testSentence);

            //assert
            Assert.Equal(wordFound, newInput.CheckIfWordFound());
        }