예제 #1
0
        public void GivenInvalidGenericType_WithMissingChildValue_ThenCorrectValidationResults()
        {
            RecursiveValidator      validator = new RecursiveValidator(null);
            List <ValidationResult> results   = validator.ValidateObjectRecursively(GenericType.WithMissingChildValue());

            Assert.Single(results);
            ValidationResultUtility.AssertValidationResultEquals(results[0], "The Value field is required.", "Child.Value");
        }