I have a unit test that I pass RootContextData, i.e.
var context = new ValidationContext<Person>(person);
context.RootContextData["MyCustomData"] = "Test";
var validator = new PersonValidator();
validator.Validate(context);
When unit testing that validator I need to pass the RootContextData but I don't see any way to do that.
.TestValidate() method does not have an overload that takes a context.
var result = validator.TestValidate(objectToTest);
Is there a way to set RootContextData for the validator before running a unit test?