public void FindAndReplace_ReturnReplacedPhrase_ReplacedPhrase() { FindAndReplace testFindAndReplace = new FindAndReplace("I walk the cat to the cathedral", "cat", "dog"); List <string> expected = new List <string> { "I walk the dog to the doghedral" }; List <string> output = testFindAndReplace.FindAndReplaceMethod(); Assert.Equal(expected, output); }
public void FindAndReplace_ReturnNoMatch_NoMatch() { FindAndReplace testFindAndReplace = new FindAndReplace("hello cutie", "bills", "goodbye"); List <string> expected = new List <string> { "Your word was not a match" }; List <string> output = testFindAndReplace.FindAndReplaceMethod(); Assert.Equal(expected, output); }