Exemplo n.º 1
0
        public void DateTimeValidCheck()
        {
            //test valid date time examples
            clsCustomer newCustomer = new clsCustomer();
            String      error       = newCustomer.ValidateDateTime(TDOB);

            Assert.AreEqual(error, "");
        }
Exemplo n.º 2
0
        public void DateTimeSymbolsCheck()
        {
            //test date time with invalid symbols in it
            clsCustomer newCustomer = new clsCustomer();
            String      testDate    = "01/3$6/20";
            String      error       = newCustomer.ValidateDateTime(testDate);

            Assert.AreNotEqual(error, "");
        }
Exemplo n.º 3
0
        public void DateTimeLettersCheck()
        {
            //test date time with letters in it
            clsCustomer newCustomer = new clsCustomer();
            String      testDate    = "a1/03/20";
            String      error       = newCustomer.ValidateDateTime(testDate);

            Assert.AreNotEqual(error, "");
        }