public void UnlessMustThrowArgumentNullExceptionWhenPredicateIsNull() { Assert.Throws <ArgumentNullException>(() => EntityPropertyValidationRuleExtensions.Unless(Substitute.For <IEntityValidationRuleBuilder <Customer, string> >(), null)); }
public void UnlessMustThrowArgumentNullExceptionWhenRuleBuilderIsNull() { Assert.Throws <ArgumentNullException>(() => EntityPropertyValidationRuleExtensions.Unless <Customer, string>(null, x => x.Age != null)); }