Beispiel #1
0
 public void MustMustThrowArgumentNullExceptionWhenPredicateIsNull()
 {
     Assert.Throws <ArgumentNullException>(() => EntityPropertyValidationRuleExtensions.Must(Substitute.For <IEntityValidationRuleBuilderInitial <Customer, string> >(), null));
 }
Beispiel #2
0
 public void MustMustThrowArgumentNullExceptionWhenRuleBuilderIsNull()
 {
     Assert.Throws <ArgumentNullException>(() => EntityPropertyValidationRuleExtensions.Must <Customer, string>(null, x => x != null));
 }