コード例 #1
0
        public static void TestThrowIfNoOverrideIsValid02()
        {
            var attribute = new ValidationAttributeNoOverrides();

            Assert.Throws <NotImplementedException>(
                () => attribute.Validate("Object to validate does not matter - no override of IsValid", s_testValidationContext));
        }
コード例 #2
0
 public static void TestThrowIfNoOverrideIsValid01()
 {
     var attribute = new ValidationAttributeNoOverrides();
     Assert.Throws<NotImplementedException>(
         () => attribute.Validate(
             "Object to validate does not matter - no override of IsValid",
             "Name to put in error message does not matter either"));
 }
コード例 #3
0
        public static void TestThrowIfNoOverrideIsValid01()
        {
            var attribute = new ValidationAttributeNoOverrides();

            Assert.Throws <NotImplementedException>(
                () => attribute.Validate(
                    "Object to validate does not matter - no override of IsValid",
                    "Name to put in error message does not matter either"));
        }
コード例 #4
0
 public static void TestThrowIfNoOverrideIsValid02()
 {
     var attribute = new ValidationAttributeNoOverrides();
     Assert.Throws<NotImplementedException>(
         () => attribute.Validate("Object to validate does not matter - no override of IsValid", s_testValidationContext));
 }