I’m getting the following error when attempting to unit test some of the my validator
Error CS0121 The call is ambiguous between the following methods or properties: 'ValidationTestExtension.ShouldHaveValidationErrorFor<T, TValue>(IValidator<T>, Expression<Func<T, TValue>>, TValue, string)' and 'ValidationTestExtension.ShouldHaveValidationErrorFor<T, TValue>(IValidator<T>, Expression<Func<T, TValue>>, T, string)'
I’ve replicated this issue by creating a new SS template from VS , adding a validator class and attempting to call the following code in a unit test method.
var validator = new UserValidaton();
validator.ShouldHaveValidationErrorFor(x => x.Name, null, null );