public void testReplace_specialCharacters() { FindAndReplace newFindAndReplace = new FindAndReplace("He said #BlackLivesMatter!", "BlackLivesMatter", "BLM"); Assert.Equal(newFindAndReplace.Replace(), "He said #BLM!"); }
public void testReplace_helloworldworlduniversehelloworld_hellouniverse() { FindAndReplace newFindAndReplace = new FindAndReplace("hello world", "world", "universe"); Assert.Equal(newFindAndReplace.Replace(), "hello universe"); }
public void testReplace_hellotheworldworlduniverse_hellothereworld() { FindAndReplace newFindAndReplace = new FindAndReplace ("hello the world", "the", "there"); Assert.Equal(newFindAndReplace.Replace(), "hello there world"); }
public void testReplace_helloworldworlduniversehelloworld_helloplanet() { FindAndReplace newFindAndReplace = new FindAndReplace("hello world.", "world", "planet"); Assert.Equal(newFindAndReplace.Replace(), "hello planet."); }
public void testReplace_ellohelloworldellothere_goodhelloworld() { FindAndReplace newFindAndReplace = new FindAndReplace("ello hello world", "ello", "good"); Assert.Equal(newFindAndReplace.Replace(), "good hello world"); }