Quantcast
Channel: Fluent Validation for .NET
Viewing all articles
Browse latest Browse all 1917

New Post: Unit Testing on Rule for a List

$
0
0
Hi

You won't be able to use the ShouldHaveValidationErrorFor method for this - it only works for settable properties. You'll need to invoke the validator manually and run assertions against the result.Errors collection.

Jeremy

Viewing all articles
Browse latest Browse all 1917

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>