public void Custom_within_ruleset()
        {
            var validator = new InlineValidator <Person>();

            validator.RuleSet("foo", () => { validator.Custom(x => { return(new ValidationFailure("x", "y")); }); });
            validator.RuleSet("bar", () => { validator.Custom(x => { return(new ValidationFailure("x", "y")); }); });

            var result = validator.Validate(new Person(), ruleSet: "foo");

            result.Errors.Count.ShouldEqual(1);
        }