Mockings: Convenience overloads for Setup<T>.Executes

Issue #392 resolved
Zigmund Bulinsh created an issue

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)

  1. Log in to comment