Esempio n. 1
0
 public void TestValidateValidIndex()
 {
     K_Index k = new K_Index("3");
     string err = string.Empty;
     string modStr = string.Empty;
     Assert.IsTrue(k.Validate(out err,out modStr));
     Assert.IsNull(err);
     Assert.IsNull(modStr);
 }
Esempio n. 2
0
 public void TestValidateInvalidIndex()
 {
     K_Index k = new K_Index("k4");
     string err = string.Empty;
     string modStr = string.Empty;
     Assert.IsFalse(k.Validate(out err, out modStr));
     Assert.AreEqual("\tValue must be a number.", err);
     Assert.IsNull(modStr);
 }