isValid() public static method

public static isValid ( SocSecNum ssn ) : bool
ssn SocSecNum
return bool
Esempio n. 1
0
 public void testIsValid()
 {
     Assert.IsTrue(VistaSocSecNum.isValid(new SocSecNum("555555555")));
     Assert.IsFalse(VistaSocSecNum.isValid(new TestSoc("819", "11", "abcd")));
     Assert.IsTrue(VistaSocSecNum.isValid(new TestSoc("819", "11", "7894")));
     Assert.AreEqual(true, VistaSocSecNum.isValid(new TestSoc("111", "11", "1111")));
     Assert.IsFalse(VistaSocSecNum.isValid(new TestSoc("abc", "11", "1111")));
     Assert.IsFalse(VistaSocSecNum.isValid(new TestSoc("11", "ab", "1111")));
     Assert.IsFalse(VistaSocSecNum.isValid(new TestSoc("111", "11", "abcd")));
     Assert.IsFalse(VistaSocSecNum.isValid(new TestSoc("111", "1", "1111")));
 }