Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

engenb
Copy link
Contributor

@engenb engenb commented Jan 18, 2023

Hey there @JeremySkinner , big fan of FluentValidation so I'm excited at the chance to make some sort of small contribution.

This simply adds some TestValidate overloads to allow utilizing the ValidationContext<T>. I need this in some unit tests to set up RootContextData before the validation is run.

The original TestValidate<T> just defers now to the new overload, and since the original TestValidate<T> is already being tested (and all tests still pass) I hope you agree that we get test coverage for free here and don't need to add additional (redundant) unit tests.

Thanks again

@dnfadmin
Copy link
Collaborator

dnfadmin commented Jan 18, 2023

CLA assistant check
All CLA requirements met.

@JeremySkinner JeremySkinner merged commit c4ee149 into FluentValidation:main Jan 19, 2023
@JeremySkinner
Copy link
Member

Thanks!

@engenb engenb deleted the test_extensions branch January 19, 2023 17:23
@JeremySkinner JeremySkinner added this to the 11.5 milestone Jan 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.