예제 #1
0
 public void PersonUnder18ShouldBeUnapprovedProperty()
 {
     Prop.ForAll(PeopleGenerators.PersonUnder18().ToArbitrary(),
                 p => LoanCalculator.Calculate(p).ApprovalStatus == ApprovalStatus.Unapproved)
     .QuickCheckThrowOnFailure();
 }
예제 #2
0
 public static Arbitrary <Person> Generate()
 {
     return(PeopleGenerators.PersonUnder18().ToArbitrary());
 }