Esempio n. 1
0
        public void Rule019_na()
        {
            Rule      rule   = TestData_Rules.Rule019();
            DataTable dt     = new DataTable();
            var       c      = dt.AddNewDataColumnWithExtendedProperties("Person", "PRSN", "char(9)");
            var       result = rule.RunRuleAgainstObject(c);

            Assert.False(result.AntecedentEvaluatesToTrue);
            Assert.Null(result.ConsequentEvaluatesToTrue);
        }
Esempio n. 2
0
        public void Rule019_applies_fail()
        {
            Rule      rule   = TestData_Rules.Rule019();
            DataTable dt     = new DataTable();
            var       c      = dt.AddNewDataColumnWithExtendedProperties("Employer Id number", "EMP_ID_NUM", "char(99)");
            var       result = rule.RunRuleAgainstObject(c);

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