예제 #1
0
 public void TestValidate2Valid()
 {
     My_VUCC_Grids grids = new My_VUCC_Grids("EN98,EN97");
     string err = string.Empty;
     string modStr = string.Empty;
     Assert.IsTrue(grids.Validate(out err, out modStr));
     Assert.IsNull(err);
     Assert.IsNull(modStr);
 }
예제 #2
0
 public void TestValidate1Valid()
 {
     My_VUCC_Grids grids = new My_VUCC_Grids("EN98");
     string err = string.Empty;
     string modStr = string.Empty;
     Assert.IsFalse(grids.Validate(out err, out modStr));
     Assert.AreEqual("\tMy_VUCC_Grids contains 1 grid squares. Must contain either 2 or 4 grid squares.",
                     err);
     Assert.IsNull(modStr);
 }
예제 #3
0
 public void TestValidateInvalid()
 {
     My_VUCC_Grids grids = new My_VUCC_Grids("EN9,EN97");
     string err = string.Empty;
     string modStr = string.Empty;
     Assert.IsFalse(grids.Validate(out err, out modStr));
     Assert.AreEqual("\t'EN9' is not a valid My_VUCC_Grids grid square",
                     err);
     Assert.IsNull(modStr);
 }