chevron-thin-right chevron-thin-left brand cancel-circle search youtube-icon google-plus-icon linkedin-icon facebook-icon twitter-icon toolbox download check linkedin phone twitter-old google-plus facebook profile-male chat calendar profile-male
0 votes
I wonder if it is possible to instruct the isolator to execute some code (in the form of an anonymous delegate, for example) when some method of a faked object is called, and not just expect the call / ignore it...

I saw this feature in other mocking frameworks and couldn't find it in TypeMock.

Thanks,
Zvika.
asked by zvikag (1.2k points)

2 Answers

0 votes
Hi Zvika

We have this feature in reflective mocks under DynamicReturnValue
We plan to add it to our Arrange Act Assert API in the near future.
answered by ohad (35.5k points)
0 votes
Hello Ohad,

Although it is possible to do anything I want in the DynamicReturnValue method, this only applies to methods with a return value. What about methods without one?
answered by zvikag (1.2k points)
...