title: FluentValidation test when fields match
body: <p>I'm trying to unit test a validator I have that checks when 2 fields match - but am at a loss of exactly how to get it done.</p>
  
  <p>I've tried</p>
  
  <pre><code>var validator = new CreateUserValidator();
  validator.ShouldHaveValidationErrorFor(user =&gt; user.Password.Equals(user.PasswordConfirmation));
  </code></pre>
  
  <p>But there is no overload for ShouldHaveValidationErrorFor that takes 1 argument. Short of declaring a local variable and setting the value to that of the PasswordConfirmation I'm at a loss how to effectively test this.</p>
  
  <p>Does anyone have any ideas out there?</p>