public void ShouldIgnoreNullValues()
        {
            var validator = new SqlDateTimeValidator();
            validator.Validate(ValidationContext, null);

            Assert.IsTrue(ValidationContext.IsValid);
        }
        public void ShouldWorkWithNullableDateTime()
        {
            DateTime? value = DateTime.Now;
            var validator = new SqlDateTimeValidator();
            validator.Validate(ValidationContext, value);

            Assert.IsTrue(ValidationContext.IsValid);
        }
 public void ShouldThrowAnExceptionIfAppliedToTypeOtherThanDateTime()
 {
     var validator = new SqlDateTimeValidator();
     validator.Validate(ValidationContext, 34);
 }