Exemple #1
0
        public void Rule038_na()
        {
            Rule      rule   = TestData_Rules.Rule038_AddresslineLength();
            DataTable dt     = new DataTable();
            var       c      = dt.AddNewDataColumnWithExtendedProperties("Top secret id", "TSOI", "char(5)");
            var       result = rule.RunRuleAgainstObject(c);

            Assert.False(result.AntecedentEvaluatesToTrue);
            Assert.Null(result.ConsequentEvaluatesToTrue);
        }
Exemple #2
0
        public void Rule038_applies_fail()
        {
            Rule      rule   = TestData_Rules.Rule038_AddresslineLength();
            DataTable dt     = new DataTable();
            var       c      = dt.AddNewDataColumnWithExtendedProperties("Home Address Line", "ADDRLN", "char(32)");
            var       result = rule.RunRuleAgainstObject(c);

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