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