public void Rule050_na() { Rule rule = TestData_Rules.Rule050_datatype_length_required(); DataTable dt = new DataTable(); var c = dt.AddNewDataColumnWithExtendedProperties("Top secret id", "TSOI", "date"); var result = rule.RunRuleAgainstObject(c); Assert.False(result.AntecedentEvaluatesToTrue); Assert.Null(result.ConsequentEvaluatesToTrue); }
public void Rule050_applies_fail() { Rule rule = TestData_Rules.Rule050_datatype_length_required(); DataTable dt = new DataTable(); var c = dt.AddNewDataColumnWithExtendedProperties("Home Address Line", "ADDRLN", "char"); var result = rule.RunRuleAgainstObject(c); Assert.True(result.AntecedentEvaluatesToTrue); Assert.False(result.ConsequentEvaluatesToTrue); }