private static IEnumerable<string> Validate( object model )
        {
            var ctx = new ValidationContext( model, null, null );

            var attr = new ValidateObjectAttribute();
            var result = attr.GetValidationResult( model, ctx );

            return RecursiveValidator.ExpandResults( result );
        }
        public void GetValidationResult_WithNull_SuccessReturned()
        {
            var ctx = new ValidationContext( new object(), null, null );

            var attr = new ValidateObjectAttribute();
            var result = attr.GetValidationResult( null, ctx );

            Assert.That( result, Is.EqualTo( ValidationResult.Success ) );
        }