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)); }
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); }
public void CanDisable_should_not_throw_exception() { var command = new DisableRule(); GuardRule.CanDisable(command); }