Exemplo n.º 1
0
        public void WhenRuleSet_DifferentData_Throws(Tuple <bool, bool, bool> param, int number)
        {
            var rule      = new WhenFluentRuleSet(number);
            var validator = new Validator();

            Assert.That(() => validator.Validate(rule, param, null), Throws.TypeOf <WhenException>());
        }
Exemplo n.º 2
0
        public void WhenRuleSet_DifferentData_CorrectResults(Tuple <bool, bool, bool> param, int number)
        {
            var rule      = new WhenFluentRuleSet(number);
            var validator = new Validator();

            validator.Validate(rule, param, null);
        }