Beispiel #1
0
 public void TestValidateNullKey()
 {
     Public_Key key = new Public_Key(null);
     string err = string.Empty;
     string modStr = string.Empty;
     Assert.IsFalse(key.Validate(out err, out modStr));
     Assert.AreEqual("Value is null.", err);
     Assert.IsNull(modStr);
 }
Beispiel #2
0
 public void TestValidate()
 {
     Public_Key key = new Public_Key("A65412B5");
     string err = string.Empty;
     string modStr = string.Empty;
     Assert.IsTrue(key.Validate(out err, out modStr));
     Assert.IsNull(err);
     Assert.IsNull(modStr);
 }