You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't think what you describe above with the multiple arguments in a tuple is actually feasible in the Scala language, as your expectation is to convert from 1 arg of (Int, Int) to 2 args Int, Int dynamically.
It may well create a different problem when the tuple signature also exist and make it ambiguous in syntax.
Have you considered the onCall handler instead of argument captures?
You can write the lambda yourself then and perform more complex comparisons
You're probably right, I had a closer look at how the capturing works, and indeed, it does not seem possible.
I worked around it by writing my own mock.
Feature improvement request:
ScalaMock Version (e.g. 3.5.0)
5.0.0
Scala Version (e.g. 2.12)
2.12.
Please describe the expected behavior of the issue
Capturing multiple arguments is not intuitive: it requires a Capture object per argument, which makes verifying the captures cumbersome
Reproducible Test Case
The text was updated successfully, but these errors were encountered: