public void CheckEndWithRuleIsolated() { var beginWithRule = new EndWithRule(); beginWithRule.InitRule("R1", "end", null); Assert.True(beginWithRule.IsMatch("begin with begin end")); Assert.False(beginWithRule.IsMatch("begin with begin end.")); }
public RuleRunnerTest() { IRule rule; rule = new BeginWithRule(); RulesPrototypes.Add(rule.TypeName, rule); rule = new EndWithRule(); RulesPrototypes.Add(rule.TypeName, rule); rule = new AndRule(); RulesPrototypes.Add(rule.TypeName, rule); }