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 have an interface with a method that is called multiple times where I can't guarantee the order it's called in. However, the arguments on each call are different. Is there any way for me to specify a return value for specific arguments? E.g. something like:
interface Adder {
Add(a int, b int) c int
}
fakeAdder.ReturnsWithArguments(1, 1, 3)
This would return 3 whenever someone calls adder.Add(1, 1)
The text was updated successfully, but these errors were encountered:
Hi -
I have an interface with a method that is called multiple times where I can't guarantee the order it's called in. However, the arguments on each call are different. Is there any way for me to specify a return value for specific arguments? E.g. something like:
This would return 3 whenever someone calls
adder.Add(1, 1)
The text was updated successfully, but these errors were encountered: