-
Notifications
You must be signed in to change notification settings - Fork 729
Add ForConstraint
to IAssertionScope
#2324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ForConstraint
to IAssertionScope
#2324
Conversation
Pull Request Test Coverage Report for Build 6330154472
💛 - Coveralls |
Qodana for .NET1 new problem were found
💡 Qodana analysis was run in the pull request mode: only the changed files were checked View the detailed Qodana reportTo be able to view the detailed Qodana report, you can either:
To get - name: 'Qodana Scan'
uses: JetBrains/[email protected]
with:
upload-result: true Contact Qodana teamContact us at [email protected]
|
1a08ece
to
0469474
Compare
Maybe I an missing something, but I don't get how to construct a test to cover the last coverage issue. Edit: nevermind... |
e8d1c24
to
1d0dc8c
Compare
1d0dc8c
to
052d912
Compare
Until 6.12 you are not able to chain
.ForConstraint()
after.Then
.The only possibility for was to check
.ForConstraint()
first and then chain all subsequent assertions with.Then
.This leads to following issue: you cannot pre-check for e.g.
null
or empty, which leads to multiple sets ofExecute.Assertions...
to check every possible failure first.This PR introduces this
.ForConstraint()
to the contractIAssertionScope
to make this before mentioned possible.Closes #1918
IMPORTANT
./build.sh --target spellcheck
or.\build.ps1 --target spellcheck
before pushing and check the good outcome