Different behavior of [Test]Validate on Unit Tests
See original GitHub issueFluentValidation version
10.1.0
ASP.NET version
3.1
Summary
So on 9.5.4 I was getting IsValid == false, which is the expected result. I’m setting up nested validator to have errors.
Now on 10.1.0 those errors don’t came back to parent validator / Validate
.
Steps to Reproduce
No response
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Test Extensions — FluentValidation documentation
You can use the TestValidate extension method to invoke a validator for testing purposes, and then perform assertions against the result.
Read more >Unit Testing Fluent Validations
Fluent Validations is a popular package for doing those data validations. This tip is how to unit test those data validation behaviors.
Read more >Fluent Validation – Unit Testing the Validators
In this article, we are going to have a look at how to unit test the validation logic written using fluent validation.
Read more >Unit testing FluentValidation rules for classes with sub/child ...
Is it possible to write unit tests for fluentvalidation classes when the object we are validating has child classes that are also being ......
Read more >FluentValidation.Validators.UnitTestExtension
Small library that extends and simplifies possibilities of testing code that is using FluentValidation package. - GitHub - MichalJankowskii/FluentValidation ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Awesome thanks. It’s working
It’ll be something like: