예제 #1
0
 public void TestValidateY()
 {
     Qso_Random bf = new Qso_Random("Y");
     string err = string.Empty;
     string modStr = string.Empty;
     Assert.IsTrue(bf.Validate(out err,out modStr));
     Assert.IsNull(err);
     Assert.IsNull(modStr);
 }
예제 #2
0
 public void TestValidateInvalidValue()
 {
     Qso_Random bf = new Qso_Random("F");
     string err = string.Empty;
     string modStr = string.Empty;
     Assert.IsFalse(bf.Validate(out err, out modStr));
     Assert.AreEqual("\tBoolean field must have value 'Y' or 'N'.", err);
     Assert.IsNull(modStr);
 }