isValidGroupNumber() public static method

public static isValidGroupNumber ( string value ) : bool
value string
return bool
Beispiel #1
0
 public void testIsValidGroupNumberString6()
 {
     Assert.IsFalse(SocSecNum.isValidGroupNumber(""), "Expected blank to be invalid");
 }
Beispiel #2
0
 public void testIsValidGroupNumberString5()
 {
     Assert.IsFalse(SocSecNum.isValidGroupNumber("ab"), "Expected ab to be invalid");
 }
Beispiel #3
0
 public void testIsValidGroupNumberString4()
 {
     Assert.IsFalse(SocSecNum.isValidGroupNumber("123"), "Expected strings over 2 chars to be invalid");
 }
Beispiel #4
0
 public void testIsValidGroupNumberString3()
 {
     Assert.IsFalse(SocSecNum.isValidGroupNumber("1"), "Expected strings shorter than 2 chars to be invalid");
 }
Beispiel #5
0
 public void testIsValidGroupNumberString2()
 {
     Assert.IsFalse(SocSecNum.isValidGroupNumber("00"), "Expected 00 to be invalid");
 }
Beispiel #6
0
 public void testIsValidGroupNumberString()
 {
     Assert.IsTrue(SocSecNum.isValidGroupNumber("12"), "Expected 12 to be valid");
 }