public void ShouldGeneratePersonOver18() { for (int x = 0; x < 100000; ++x) { TestPerson.GenerateBirthDate(true); Assert.That(TestPerson.Age, Is.AtLeast(18)); } }
public void ShouldGenerateCorrectPIN() { for (int x = 0; x < 100000; ++x) { TestPerson.GenerateGender(); TestPerson.GenerateBirthDate(false); TestPerson.GenerateSocialSecurityNumber(); Assert.That(FixPINformat(TestPerson.SocialSecurityNumber), Is.True); Assert.That(CheckPIN(TestPerson.SocialSecurityNumber), Is.True); } }