public void Prevent_Partial_Replacements_While_Allowing_Single() { FindReplace test6 = new FindReplace("I am walking my cat to the cathedral", "cat", "wolf"); Assert.Equal("i am walking my wolf to the cathedral", test6.WholeWordsOnly()); }
public void Prevent_Partial_Replacements() { FindReplace test5 = new FindReplace("catdog", "cat", "wolf"); Assert.Equal("catdog", test5.WholeWordsOnly()); }