public void Null_rules_cannot_be_added_to_a_ValidationPlans() { var plan = new ValidationPlan <string>(); IValidationRule <string> nullRule = null; Action addNullRule = () => plan.Add(nullRule); addNullRule.ShouldThrow <ArgumentNullException>(); }
public void Null_rules_cannot_be_added_to_a_ValidationPlans() { var plan = new ValidationPlan <string>(); IValidationRule <string> nullRule = null; Action addNullRule = () => plan.Add(nullRule); addNullRule.ShouldThrow <ArgumentNullException>(); }