- changed status to resolved
Mockings: Convenience overloads for Setup<T>.Executes
Issue #392
resolved
Hello!
You already have two overloads for Setup<T>.Executes:
- Executes with no params;
- Execute with TMockAction parameter.
I would like suggesting to add 2 overloads for Setup<T>.Executes:
- Executes with TProc - when there is no need for context;
- Executes with TFunc<TValue> = when there is no need for parameters.
And these methods could just really call the execute with TMockAction created inside.
Writing this “(const ACall: TCallInfo)” with no use is a bit annoying sometimes.
If we would have a generic record helpers I would be able to do that on my own…
Best regards,
Zigmund.
Comments (1)
-
repo owner - Log in to comment
implemented additional overloads for mock.setup.executes (resolves
#392)→ <<cset 3035405d0c7d>>