Exemple #1
0
        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);
        }
Exemple #2
0
        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);
        }
Exemple #3
0
        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);
        }