Improve error messages for accidental Equals usage#2006
Improve error messages for accidental Equals usage#2006dennisdoomen merged 23 commits intofluentassertions:developfrom
Equals usage#2006Conversation
| #pragma warning restore CA1065 | ||
|
|
||
| /// <inheritdoc/> | ||
| public override int GetHashCode() => base.GetHashCode(); |
There was a problem hiding this comment.
The configured linting rules were upset that I overrode Equals without also overriding GetHashCode().
Pull Request Test Coverage Report for Build 3222617057Warning: 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 |
It looks good 👍 Note: The decrease in code coverage is because |
Tests/FluentAssertions.Specs/Specialized/ExecutionTimeAssertionsSpecs.cs
Show resolved
Hide resolved
|
What a nice PR. I especially love the positive comments from @nycdotnet |
PR for #1997 . I think it would also be good to have this exact error message in the docs somewhere with a little explainer, so I added that.
Todo:
PropertyInfoSelectorAssertionsTypeSelectorAssertionsGenericCollectionAssertions(see this comment on original issue)IMPORTANT