public static void TestNoThrowIfOverrideIsValid01()
        {
            var attribute = new ValidationAttributeOverrideTwoArgsIsValid();

            AssertEx.DoesNotThrow(
                () => attribute.Validate("Valid Value", "Name to put in error message does not matter - no error"));
        }
Ejemplo n.º 2
0
 public static void TestNoThrowIfOverrideIsValid01()
 {
     var attribute = new ValidationAttributeOverrideTwoArgsIsValid();
     attribute.Validate("Valid Value", "Name to put in error message does not matter - no error");
 }
Ejemplo n.º 3
0
 public static void TestNoThrowIfOverrideIsValid03()
 {
     var attribute = new ValidationAttributeOverrideTwoArgsIsValid();
     attribute.Validate("Valid Value", s_testValidationContext);
 }
        public static void TestNoThrowIfOverrideIsValid03()
        {
            var attribute = new ValidationAttributeOverrideTwoArgsIsValid();

            AssertEx.DoesNotThrow(() => attribute.Validate("Valid Value", s_testValidationContext));
        }
 public static void TestNoThrowIfOverrideIsValid03()
 {
     var attribute = new ValidationAttributeOverrideTwoArgsIsValid();
     AssertEx.DoesNotThrow(() => attribute.Validate("Valid Value", s_testValidationContext));
 }
        public static void TestNoThrowIfOverrideIsValid03()
        {
            var attribute = new ValidationAttributeOverrideTwoArgsIsValid();

            attribute.Validate("Valid Value", s_testValidationContext);
        }