Skip to content

What to do with mutants in custom GetHashCode() implementations? #1667

Closed Answered by dupdob
psfinaki asked this question in Q&A
Discussion options

You must be logged in to vote

I am close to 100% with NFluent. I do have unit tests for the couple for GetHashCode overrides, if that is your question.
Those have to be updated sometimes as hashcode calculation may change across Net framework versions.

If you do not want to test such methods, you can mark them with [ExcludeCoverage], this will disable mutation for this method.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@psfinaki
Comment options

psfinaki Aug 18, 2021
Collaborator Author

@psfinaki
Comment options

psfinaki Aug 20, 2021
Collaborator Author

Answer selected by dupdob
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants