Esempio n. 1
0
        public void Rule089_na()
        {
            Rule      rule   = TestData_Rules.Rule089_Character_dates();
            DataTable dt     = new DataTable();
            var       c      = dt.AddNewDataColumnWithExtendedProperties("Person Name", "TSOI", "char(5)");
            var       result = rule.RunRuleAgainstObject(c);

            Assert.False(result.AntecedentEvaluatesToTrue);
            Assert.Null(result.ConsequentEvaluatesToTrue);
        }
Esempio n. 2
0
        public void Rule089_applies_fail()
        {
            Rule      rule   = TestData_Rules.Rule089_Character_dates();
            DataTable dt     = new DataTable();
            var       c      = dt.AddNewDataColumnWithExtendedProperties("Application Character Date", "APP_CHARDT", "char(6)");
            var       result = rule.RunRuleAgainstObject(c);

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