Example #1
0
        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."));
        }
Example #2
0
        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);
        }