Beispiel #1
0
        public void GivenInvalidGenericType_WithMissingChild_ThenCorrectValidationResults()
        {
            RecursiveValidator      validator = new RecursiveValidator(null);
            List <ValidationResult> results   = validator.ValidateObjectRecursively(GenericType.WithMissingChild());

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