Skip to content
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

Fixed setup issues when specifying the same parameters in a different order (issue #252) #262

Merged
merged 1 commit into from
May 22, 2016

Conversation

LeonidLevin
Copy link

@LeonidLevin LeonidLevin commented May 21, 2016

This should fix #252.
The problem was in how hash code was calculated for ExpressionKey objects: expression keys with the same values but in a different order would have the same hash code, so that `calls.ContainsKey(key)' would think that the key already existed in the dictionary.

I modified the GetHashCode() function in the ExpressionKey class to fix this. And added a unit test in IssueReportsFixture.cs.

@kzu
Copy link
Member

kzu commented May 22, 2016

Creative workaround ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Method setup broken when specifying the same parameters in a different order in setup
2 participants