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