Exemplo n.º 1
0
        public void CheckForWord_PhraseContainsWord_True()
        {
            // Arrange
            string   phrase = "Hello world", word = "world", replacement = "Haru";
            Replacer newReplacer = new Replacer(phrase, word, replacement);
            // Act
            bool wordExists = newReplacer.CheckForWord();

            // Assert
            Assert.AreEqual(true, wordExists);
        }