minimock icon indicating copy to clipboard operation
minimock copied to clipboard

Allow expected counter for concrete controller's method

Open CyganFx opened this issue 3 years ago • 0 comments

Hi, I think there is an often case when we need to set expected times that concrete controller method will be executed during the test. Currently, <method>AfterCounter allows only to get the current value of calls to the mocked method, which is useless in table tests and lead to potential logical errors to pass the test.

There is a convenient method Times(N) in gomock. Could you add a similar one?

CyganFx avatar Nov 30 '22 14:11 CyganFx