public void CanEnable_should_not_throw_exception_if_rule_disabled() { var command = new EnableRule(); var rule_1 = rule_0.Disable(); GuardRule.CanEnable(command, rule_1); }
public void CanEnable_should_throw_exception_if_rule_enabled() { var command = new EnableRule(); var rule_1 = rule_0.Enable(); Assert.Throws <ValidationException>(() => GuardRule.CanEnable(command, rule_1)); }