public void AddCutRuleIsCorrectlyApplied() { CyrRule rule = new CyrRule("add2"); string a = "text"; string b = rule.Apply(a); Assert.Equal("teadd", b); }
public void EmptyRuleIsCorrectlyApplied() { CyrRule rule = new CyrRule(string.Empty); string a = "text"; string b = rule.Apply(a); Assert.Equal(a, b); }
public void UnavailableRulelIsCorrectlyApplied() { CyrRule rule = new CyrRule("*"); string a = "text"; string b = rule.Apply(a); Assert.Equal(string.Empty, b); }
public void CutRuleIsCorrectlyReverted() { CyrRule rule = new CyrRule("2"); string original = "text"; string current = "pe"; string reverted = rule.Revert(original, current); Assert.Equal("pext", reverted); }
public void EmptyRuleIsCorrectlyReverted() { CyrRule rule = new CyrRule(string.Empty); string original = "text"; string current = "pext"; string reverted = rule.Revert(original, current); Assert.Equal(current, reverted); }
public void UnavailableRulelIsCorrectlyReverted() { CyrRule rule = new CyrRule("*"); string original = "text"; string current = "pext"; string reverted = rule.Revert(original, current); Assert.Equal(current, reverted); }