示例#1
0
 public void IsValidTest()
 {
     Assert.IsFalse(FingerPrint.IsValid(null));
     Assert.IsFalse(FingerPrint.IsValid(String.Empty));
     Assert.IsFalse(FingerPrint.IsValid("unit test"));
     Assert.IsFalse(KeyId.IsValid("子子子子子子子子子子子子子子子子"));
     Assert.IsTrue(FingerPrint.IsValid("123465ABCDE"));
 }
示例#2
0
 public void IsValidTest()
 {
     Assert.IsFalse(KeyId.IsValid(null));
     Assert.IsFalse(KeyId.IsValid(String.Empty));
     Assert.IsFalse(KeyId.IsValid("unit test"));
     Assert.IsFalse(KeyId.IsValid("子子子子子子子子子子子子子子子子"));
     Assert.IsTrue(KeyId.IsValid("0123456789ABCDEF"));
 }