Search code examples
unit-testingtypemocktypemock-isolator

How to verify that private generic method was called?


I need to check whether private generic method was called with particular parameter type.

(Just stop thinking of telling me it's a bad practice to test private methods.)

Isolate.Verify.NonPublic.WasCalled()

has no overloads for specifying type parameters.

Is such verification possible?

Update

Since 7.5.2 API for this verification was added.

Here is the discussion.


Solution

  • Since Typemock v 7.5.2 API for this verification was added.

    Here is the discussion.