public void Validate_TypeWithInvalidPrimitiveType_Fails()
        {
            var instance = new TypeWithPrimitiveTypes();
            var result   = RecursiveValidator.Validate(instance);

            result.Should().BeOfType <FailedResult>()
            .Which.Code.Should().Be(CoreErrorCodes.ValidationFailed.Code);
        }
        public void Validate_TypeWithValidPrimitiveType_Fails()
        {
            var instance = new TypeWithPrimitiveTypes {
                Property = "x"
            };
            var result = RecursiveValidator.Validate(instance);

            result.Should().BeOfType <SuccessfulResult>();
        }