示例#1
0
        public void CanDisable_should_not_throw_exception_if_rule_enabled()
        {
            var command = new DisableRule();

            var rule_1 = rule_0.Enable();

            GuardRule.CanDisable(command, rule_1);
        }
示例#2
0
        public void CanDisable_should_throw_exception_if_rule_disabled()
        {
            var command = new DisableRule();

            var rule_1 = rule_0.Disable();

            Assert.Throws <ValidationException>(() => GuardRule.CanDisable(command, rule_1));
        }