-
Notifications
You must be signed in to change notification settings - Fork 729
Allow specifying EquivalencyOptions
in string assertions
#2413
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
Allow specifying EquivalencyOptions
in string assertions
#2413
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
If this pull request is accepted, it replaces #2372 |
Pull Request Test Coverage Report for Build 7436672942Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
@dennisdoomen : |
Is that because you're branch is behind and needs to rebase? |
I doubt it, as the build ran and the failure was before the merge of #2416 to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a pretty impressive PR. It just needs a little cleaning up here and there.
Src/FluentAssertions/Equivalency/SelfReferenceEquivalencyAssertionOptions.cs
Outdated
Show resolved
Hide resolved
Tests/FluentAssertions.Specs/Collections/CollectionAssertionSpecs.BeEquivalentTo.cs
Outdated
Show resolved
Hide resolved
Tests/FluentAssertions.Specs/Collections/CollectionAssertionSpecs.BeEquivalentTo.cs
Outdated
Show resolved
Hide resolved
Tests/FluentAssertions.Specs/Primitives/StringAssertionSpecs.cs
Outdated
Show resolved
Hide resolved
Tests/FluentAssertions.Specs/Primitives/StringAssertionSpecs.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work
Src/FluentAssertions/Equivalency/Execution/CollectionMemberOptionsDecorator.cs
Outdated
Show resolved
Hide resolved
@vbreuss Can you try |
Yes, changing it to Sorry, I was not aware, that I need to run it locally! 😃 @IT-VBFK : Where can I find the custom dictionary? |
in the repository root |
It's not completely obvious, but we're using US English as our standard. |
I think the PR title is litte outdated? Should this go to "Allow specifying |
EquivalencyAssertionOptions
in string assertionsEquivalencyOptions
in string assertions
This comment was marked as outdated.
This comment was marked as outdated.
What's the status of this PR? |
From my side it is complete, I am waiting for reviews. I am not sure, what the issue is with the Qodana scan. Should I rebase and try again? |
Some changes were made to the Qodana scanner since the last time your PR got build. Although it's weird that your PR didn't get rebuilt. |
Qodana for .NETIt seems all right 👌 No new problems were found according to the checks applied 💡 Qodana analysis was run in the pull request mode: only the changed files were checked Contact Qodana teamContact us at [email protected]
|
I merged the latest |
Enhance the
EquivalencyOptions
to support the following methods:Instructs the comparison to ignore leading whitespace when comparing strings.
Instructs the comparison to ignore trailing whitespace when comparing strings.
Instructs the comparison to compare strings case-insensitive.
Add an overload for the following string assertions that accept a
Func<EquivalencyOptions<string>, EquivalencyOptions<string>> config
.Details are discussed in and fixes #2364.
Fixes #2339
Fixes #2064
IMPORTANT
./build.sh --target spellcheck
or.\build.ps1 --target spellcheck
before pushing and check the good outcome