isValidAreaNumber() public static method

public static isValidAreaNumber ( string value ) : bool
value string
return bool
示例#1
0
 public void testIsValidAreaNumberString7()
 {
     Assert.IsFalse(SocSecNum.isValidAreaNumber("abc"), "Expected abc to be invalid");
 }
示例#2
0
 public void testIsValidAreaNumberString8()
 {
     Assert.IsFalse(SocSecNum.isValidAreaNumber(""), "Expected blank to be invalid");
 }
示例#3
0
 public void testIsValidAreaNumberString6()
 {
     Assert.IsFalse(SocSecNum.isValidAreaNumber("773"), "Expected numbers over 772 to be invalid");
 }
示例#4
0
 public void testIsValidAreaNumberString5()
 {
     Assert.IsFalse(SocSecNum.isValidAreaNumber("666"), "Expected 666 to be invalid");
 }
示例#5
0
 public void testIsValidAreaNumberString4()
 {
     Assert.IsFalse(SocSecNum.isValidAreaNumber("000"), "Expected 000 to be invalid");
 }
示例#6
0
 public void testIsValidAreaNumberString3()
 {
     Assert.IsFalse(SocSecNum.isValidAreaNumber("1234"), "Expected strings longer than 3 chars to be invalid");
 }
示例#7
0
 public void testIsValidAreaNumberString1()
 {
     Assert.IsTrue(SocSecNum.isValidAreaNumber("123"), "Expected 123 to be valid");
 }