示例#1
0
 public void TestValidateFreqOutsideBands()
 {
     Freq freq = new Freq("14.463", aEnums);
     string err = string.Empty;
     string modStr = string.Empty;
     Assert.IsFalse(freq.Validate(out err, out modStr));
     Assert.AreEqual("\t'14.463' is outside enumerated band limits.", err);
     Assert.IsNull(modStr);
 }
示例#2
0
 public void TestValidateValidFreq()
 {
     Freq freq = new Freq("14.235", aEnums);
     string err = string.Empty;
     string modStr = string.Empty;
     Assert.IsTrue(freq.Validate(out err, out modStr));
     Assert.IsNull(err);
     Assert.IsNull(modStr);
 }
示例#3
0
 public void TestValidateFreqNonNumber2()
 {
     Freq freq = new Freq("14.235F", aEnums);
     string err = string.Empty;
     string modStr = string.Empty;
     Assert.IsFalse(freq.Validate(out err, out modStr));
     Assert.AreEqual("\tValue must be a number.", err);
     Assert.IsNull(modStr);
 }