public void TimeStampMax() { //instance of the clsEmail clsEmail TestEmail = new clsEmail(); //test data to store result of validation Boolean OK; OK = TestEmail.TimeStampValid("2016"); //check to see if result is ok Assert.IsTrue(OK); }
public void TimeStampMinLessOne() { //instance of the clsEmail clsEmail TestEmail = new clsEmail(); //test data to store result of validation Boolean OK; //test data to the property OK = TestEmail.TimeStampValid("1985"); Assert.IsFalse(OK); }
public void TimeStampMaxInvalidData() { //instance of the clsEmail clsEmail TestEmail = new clsEmail(); //test data to store result of validation Boolean OK; //test data to the property OK = TestEmail.TimeStampValid("101010101"); //check to see if result is ok Assert.IsFalse(OK); }