public void Sample_test() { IdentityNumber.IsValid("8905151430088"); IdentityNumber.IsValid("8905151430088"); IdentityNumber.IsValid("7002222412087"); IdentityNumber.IsValid("7808035176089"); IdentityNumber.IsValid("7503035682087"); }
public void Valid_identity_number_5008150764080() //test case from identity number that is correct but failed validation { IdentityNumber.IsValid("5008150764080").ShouldBe(true); }
public void Invalid_characters() { IdentityNumber.IsValid("78080351abcde").ShouldBe(false); }
public void Invalid_length() { IdentityNumber.IsValid("780803517608933").ShouldBe(false); }
public void Invalid_birth_date() { IdentityNumber.IsValid("7888835176089").ShouldBe(false); }
public void Valid_identity_number() { IdentityNumber.IsValid("7808035176089").ShouldBe(true); }