-
Notifications
You must be signed in to change notification settings - Fork 731
Add EqualityStrategyProvider for SelfReferenceEquivalencyAssertionOptions
#2431
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 EqualityStrategyProvider for SelfReferenceEquivalencyAssertionOptions
#2431
Conversation
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 View the detailed Qodana reportTo be able to view the detailed Qodana report, you can either:
To get - name: 'Qodana Scan'
uses: JetBrains/qodana-action@v2023.2.8
with:
upload-result: trueContact Qodana teamContact us at qodana-support@jetbrains.com
|
Src/FluentAssertions/Equivalency/SelfReferenceEquivalencyAssertionOptions.cs
Outdated
Show resolved
Hide resolved
Pull Request Test Coverage Report for Build 6749532270
💛 - Coveralls |
|
This time the Qodana scan fails even after I rebased on the latest Any ideas? |
|
I found this issue and this discussion which say
😞 |
dennisdoomen
left a comment
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 refactoring. Just some small comments.
Src/FluentAssertions/Equivalency/SelfReferenceEquivalencyAssertionOptions.cs
Outdated
Show resolved
Hide resolved
SelfReferenceEquivalencyAssertionOptionsSelfReferenceEquivalencyAssertionOptions
jnyrup
left a comment
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.
I love how this encapsulation removes the sprinkled calls to Clear() from SelfReferenceEquivalencyAssertionOptions.
Refactor according to this comment in the
SelfReferenceEquivalencyAssertionOptions:Extract the private fields
referenceTypes,valueTypes,getDefaultEqualityStrategyandequalityStrategyCacheto a dedicated classEqualityStrategyProvider.IMPORTANT
./build.sh --target spellcheckor.\build.ps1 --target spellcheckbefore pushing and check the good outcome