public void FindAndReplace_ReplacePartialStringWithTarget_True() { Replace testSearch = new Replace("Mellow bellow yellow jello fellow", "ello", "text"); Assert.Equal("Mtextw btextw ytextw jtext ftextw", testSearch.FindAndReplace()); }
public void FindAndReplace_ReplacesSingleWordInSentence_true() { Replace testSearch = new Replace("Hello World my old friend", "World", "Darkness"); Assert.Equal("Hello Darkness my old friend", testSearch.FindAndReplace()); }
public void GetInput_StringLengthPlus1_true() { Replace testSearch = new Replace("Hello", "ello", "text"); Assert.Equal("Htext", testSearch.FindAndReplace()); }
public void FindAndReplace_ReplacesSingleWord_true() { Replace testSearch = new Replace("Hello", "Hello", "World"); Assert.Equal("World", testSearch.FindAndReplace()); }