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
Please allow using functions without arguments in Do() and DoAndReturn(). Many times that function does not need to do anything with arguments, so this would simplify test creation a bit.
The text was updated successfully, but these errors were encountered:
Adding this comment to clarify the issue after taking a look:
Today, Do() and DoReturn() expect the function provided to it to match the signature of the underlying Call object method. If the underlying Call method being mocked does not have parameters, Do and DoAndReturn work as expected.
The user ask is to drop the restriction in the case of anonymous functions with no parameter when the underlying Call method has parameters for the convenience of not needing to specify parameters when calling Do() or DoAndReturn().
Please allow using functions without arguments in Do() and DoAndReturn(). Many times that function does not need to do anything with arguments, so this would simplify test creation a bit.
The text was updated successfully, but these errors were encountered: