Exemple #1
0
 public void It_validates_passport_id()
 {
     Assert.IsTrue(Passport.ValidPassportID("000000001"));
     Assert.IsFalse(Passport.ValidPassportID("0123456789"));
 }
Exemple #2
0
 public void It_validates_hair_color()
 {
     Assert.IsTrue(Passport.ValidHairColor("#123abc"));
     Assert.IsFalse(Passport.ValidHairColor("#123abz"));
     Assert.IsFalse(Passport.ValidHairColor("123abc"));
 }
Exemple #3
0
 public void It_validates_eye_color()
 {
     Assert.IsTrue(Passport.ValidEyeColor("brn"));
     Assert.IsFalse(Passport.ValidEyeColor("wat"));
 }
Exemple #4
0
 public void It_validates_birth_year()
 {
     Assert.IsTrue(Passport.ValidBirthYear("2002"));
     Assert.IsFalse(Passport.ValidBirthYear("2003"));
 }