public void TestAbstractNotPossible3() { var rules = new WordGenericRules(); bool newRule = rules.AbstractGenericRule("CONSTANT1 xyz", "xyz", "CONSTANT2 abc", "abc", string.Empty); Assert.IsFalse(newRule); }
public void TestAbstractAndApplyRuleCompound() { var rules = new WordGenericRules(); bool newRule = rules.AbstractGenericRule("CONSTANT ab cde", "cdeab", "CONSTANT xyz ab", "abxyz", string.Empty); Assert.IsTrue(newRule); string output = rules.ApplyMatchingRule("CONSTANT 1234 5"); Assert.AreEqual("51234", output); }
public void TestAbstractAndApplyRule1() { var rules = new WordGenericRules(); bool newRule = rules.AbstractGenericRule("CONSTANT xyz", "xyz", "CONSTANT ab", "ab", string.Empty); Assert.IsTrue(newRule); string output = rules.ApplyMatchingRule("CONSTANT bkjf"); Assert.AreEqual("bkjf", output); }