public void Gets_validator_from_metadata_nullable_struct() { var validator = new InlineValidator <Person>(); var legacyPropertyValidator = new LegacyNotNullValidator(); validator.RuleFor(x => x.NullableInt).SetValidator(legacyPropertyValidator); validator.Single().Components.Single().Validator.ShouldBeTheSameAs(legacyPropertyValidator); }