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); }
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); }
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); }