示例#1
0
            public void DateTimeValidCheck()
            {
                //test valid date time examples
                clsStaff aStaff = new clsStaff();
                String   error  = aStaff.ValidateDateTime(TDOB);

                Assert.AreEqual(error, "");
            }
示例#2
0
            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, "");
            }
示例#3
0
            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, "");
            }