Closed kamatama41 closed 2 years ago
@kamatama41 Maybe this comment is helpful for you. The basic idea is to have a list of return values for a function in a slice, where each response is returned once. The same thing could be done with a list of functions, that are then pop-ed from the list one after the other.
The mentioned solution seems to be useful for me. I will try it for now 😃
Hi, thank you for developing the great tool!
I would like to a feature mentioned in title. I sometimes want to verify different behaviors of one method in a test case, so I want to register a different function for each call of the method like following.
The test can be written by using current moq like following, but my actual usecase is more complex so that it's so hard to read.
How about this idea? Thank you.