public void Rules_within_ValidationPlan_can_be_iterated() { var plan = new ValidationPlan <string>(); Enumerable.Range(1, 10).ForEach(_AppDomain => plan.AddRule(Validate.That <string>(s => false))); Assert.AreEqual(10, plan.Count()); }
public void Nested_Rules_within_ValidationPlan_are_not_iterated_when_plan_is_iterated() { var plan = new ValidationPlan <string>(); Enumerable.Range(1, 10).ForEach(_ => plan.AddRule(new ValidationPlan <string> { Validate.That <string>(s => false), Validate.That <string>(s => false) })); Assert.AreEqual(10, plan.Count()); }