Пример #1
0
 public void ReplaceWithIndex(string wba, string waa, string word)
 {
     Assert.Equal("ZZZtttt", Derivator.Replace(wba, waa, word, 0));
     Assert.Equal("tZZZttt", Derivator.Replace(wba, waa, word, 1));
     Assert.Equal("ttZZZtt", Derivator.Replace(wba, waa, word, 2));
     Assert.Equal("tttZZZt", Derivator.Replace(wba, waa, word, 3));
     Assert.Equal("ttttZZZ", Derivator.Replace(wba, waa, word, 4));
 }
Пример #2
0
 public void Replace(string wba, string waa, string word, string expectedResult)
 {
     Assert.Equal(expectedResult, Derivator.Replace(wba, waa, word));
 }