public void DateWithValue2NullIsValid()
        {
            var model = new DateModelWithPassNull {
                Value1 = DateTime.Now
            };

            Assert.True(model.IsValid("Value2"));
        }
コード例 #2
0
        public void GreaterThanOrEqualTo_PropertyValueNullWithPassOnNull_Validates()
        {
            var model = new DateModelWithPassNull()
            {
                Value1 = DateTime.Now
            };

            Assert.IsTrue(model.IsValid("Value2"));
        }