Add EqualityStrategyProvider for SelfReferenceEquivalencyAssertionOptions#2431
Add EqualityStrategyProvider for SelfReferenceEquivalencyAssertionOptions#2431jnyrup merged 3 commits intofluentassertions:developfrom vbreuss:topic/refactor-extract-equalitystrategycache
SelfReferenceEquivalencyAssertionOptions#2431Conversation
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/[email protected]
with:
upload-result: trueContact Qodana teamContact us at [email protected]
|
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.
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.
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