Beispiel #1
0
        public void Rule057_na()
        {
            Rule      rule   = TestData_Rules.Rule057_email();
            DataTable dt     = new DataTable();
            var       c      = dt.AddNewDataColumnWithExtendedProperties("Hamburger", "TSOI", "date");
            var       result = rule.RunRuleAgainstObject(c);

            Assert.False(result.AntecedentEvaluatesToTrue);
            Assert.Null(result.ConsequentEvaluatesToTrue);
        }
Beispiel #2
0
        public void Rule057_applies_fail()
        {
            Rule      rule   = TestData_Rules.Rule057_email();
            DataTable dt     = new DataTable();
            var       c      = dt.AddNewDataColumnWithExtendedProperties("Person Email Address", "PRSN_EML_ADDR", "char(20)");
            var       result = rule.RunRuleAgainstObject(c);

            Assert.True(result.AntecedentEvaluatesToTrue);
            Assert.False(result.ConsequentEvaluatesToTrue);
        }