コード例 #1
0
        public void Rule070_na()
        {
            Rule      rule   = TestData_Rules.Rule070_from_irs();
            DataTable dt     = new DataTable();
            var       c      = dt.AddNewDataColumnWithExtendedProperties("Hamburger Code", "TSOI", "char(5)");
            var       result = rule.RunRuleAgainstObject(c);

            Assert.False(result.AntecedentEvaluatesToTrue);
            Assert.Null(result.ConsequentEvaluatesToTrue);
        }
コード例 #2
0
        public void Rule070_applies_fail()
        {
            Rule      rule   = TestData_Rules.Rule070_from_irs();
            DataTable dt     = new DataTable();
            var       c      = dt.AddNewDataColumnWithExtendedProperties("The Code Code", "IRS_CD", "char(5)", true, "This data comes from the irs");
            var       result = rule.RunRuleAgainstObject(c);

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