예제 #1
0
        public void Validate_WrongDate_ReturnFalse()
        {
            GeneralValidation val   = new GeneralValidation();
            DateTime          date1 = DateTime.Now;
            DateTime          date2 = DateTime.Now.AddDays(2);

            Assert.IsFalse(val.IsValidDate(date2, date1));
        }
예제 #2
0
        public void Validate_RightDate_ReturnTrue()
        {
            GeneralValidation val   = new GeneralValidation();
            DateTime          date1 = DateTime.Now;
            DateTime          date2 = DateTime.Now.AddDays(2);

            Assert.IsTrue(val.IsValidDate(date1, date2));
        }