예제 #1
0
        public void CanCheckForFurtureDateValidationOnFutureDate()
        {
            DateTime dateToCheck = DateTime.Today.AddDays(1);
            var      attr        = new FutureDateAttribute();

            var result = attr.IsValid(dateToCheck);

            Assert.AreEqual(false, result);
        }
예제 #2
0
        public void IsValidTest()
        {
            FutureDateAttribute target = new FutureDateAttribute(); // TODO: Initialize to an appropriate value
            object value    = null;                                 // TODO: Initialize to an appropriate value
            bool   expected = false;                                // TODO: Initialize to an appropriate value
            bool   actual;

            actual = target.IsValid(value);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }