public void Rule024_applies_fail() { Rule rule = TestData_Rules.Rule024_text_types(); DataTable dt = new DataTable(); var c = dt.AddNewDataColumnWithExtendedProperties("Employer Name", "EMP_ID_NUM", "date"); var result = rule.RunRuleAgainstObject(c); Assert.True(result.AntecedentEvaluatesToTrue); Assert.False(result.ConsequentEvaluatesToTrue); }
public void Rule024_na() { Rule rule = TestData_Rules.Rule024_text_types(); DataTable dt = new DataTable(); var c = dt.AddNewDataColumnWithExtendedProperties("Person Number", "PRSN", "char(9)"); var result = rule.RunRuleAgainstObject(c); Assert.False(result.AntecedentEvaluatesToTrue); Assert.Null(result.ConsequentEvaluatesToTrue); }