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

Parameters are ignored #28

Open
iheb719 opened this issue Nov 21, 2024 · 0 comments
Open

Parameters are ignored #28

iheb719 opened this issue Nov 21, 2024 · 0 comments

Comments

@iheb719
Copy link

iheb719 commented Nov 21, 2024

When a method is called multiple times with different parameters, all of the calls are treated the same, regardless of the parameters.

This is a sample code to illustrate the issue:

 using (Sequence.Create())
{
    myMock.Setup(v => v.myMethod("string1")).InSequence();
    myMock.Setup(v => v.myMethod("string2")).InSequence();

    // Act
    myService.callMyMethodWithString2BeforeMyMethodWithString1();   // <-- That will succeed, but it should fail because the order of calls is not correct, if we take into consideration the parameters
}
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

1 participant