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

Swapped method arguments will overwrite previous method setup #50

Closed
payn-git opened this issue Jun 20, 2013 · 2 comments
Closed

Swapped method arguments will overwrite previous method setup #50

payn-git opened this issue Jun 20, 2013 · 2 comments

Comments

@payn-git
Copy link

What steps will reproduce the problem?
When method with two arguments of same type is setup another setup call with swapped arguments will lead to situation where previous setup is removed.

What is the expected output? What do you see instead?
In case when arguments are swapped Mock should still hold reference to two different versions of method invocation setup. First which will get instance A as first argument and B as second argument. Second which have B as first argument and A as second argument.

Please reffer to attached simple code example which will simulate issue very easily.

What version of the product are you using? On what operating system?
v4.0.20926

Please provide any additional information below.
Please see attached code example which will lead to incorrect behaviour.
moqincorrectbehaviourexample

@LeonidLevin
Copy link

This is now solved, see issue #252 and pull request #262.
The issue can be closed.

@kzu
Copy link
Member

kzu commented May 22, 2016

Indeed. Thanks @LeonidLevin!

@kzu kzu closed this as completed May 22, 2016
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

No branches or pull requests

3 participants