public void DateTimeValidCheck() { //test valid date time examples clsStaff aStaff = new clsStaff(); String error = aStaff.ValidateDateTime(TDOB); Assert.AreEqual(error, ""); }
public void DateTimeSymbolsCheck() { //test date time with invalid symbols in it clsStaff aStaff = new clsStaff(); String testDate = "01/3$6/20"; String error = aStaff.ValidateDateTime(testDate); Assert.AreNotEqual(error, ""); }
public void DateTimeLettersCheck() { //test date time with letters in it clsStaff aStaff = new clsStaff(); String testDate = "a1/03/20"; String error = aStaff.ValidateDateTime(testDate); Assert.AreNotEqual(error, ""); }