Consider the case when it is expected that some mocked function will be called several times, each time with a different value in a certain parameter. I would like to confirm that the function was actually called once and only once per value in a specific list of values ββ(e.g. 1,2,5).
On the other hand, I would like to refrain from determining the sequence, since this will dictate a certain order, which is a detail of the implementation that I would like to keep for free.
Is there any socket or other solution for this case?
I'm not sure if this has any effect on the solution, but I intend to use WillOnce (Return (x)) with a different x value for the value in the list above.
source share