public void Rule085_na() { Rule rule = TestData_Rules.Rule085_switches_shouldntbe_null(); 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); }
public void Rule085_applies_fail() { Rule rule = TestData_Rules.Rule085_switches_shouldntbe_null(); DataTable dt = new DataTable(); var c = dt.AddNewDataColumnWithExtendedProperties("Alive Switch", "ALV_SW", "char(1)"); var result = rule.RunRuleAgainstObject(c); Assert.True(result.AntecedentEvaluatesToTrue); Assert.False(result.ConsequentEvaluatesToTrue); }