Hi Wray,
I am sorry that you are experiencing issues using JustMock.
It seems that you have encountered a bug in JustMock. The sample that you've sent will not work if JustMock's profiler is not enabled, but we failed to show proper exception message.
The scenario you've sent us works perfectly with JustMock's profiler enabled. To enable it, go to JustMock menu in Visual Studio and select "Enable Profiler" form the drop-down, see attached screenshot.
If it is an option, you make VoidCall() and AnotherCall() virtual in the class Foo. By this you can arrange them without using the profiler. You can see more scenarios with JustMock here: http://www.telerik.com/help/justmock/basic-usage.html
Also, in you case
is not necessary to used, because
will mock every call of
foo.AnotherCall() no matter if it is called directly or indirectly.
We apologize for the inconvenience caused. As a token of your gratitude I've given you some Telerik points.
Feel free to ask us if you have more questions.Best Regards,
Tsvetomir
Telerik
Share what you think about JustTrace & JustMock with us, so we can become even better! You can use the built-in feedback tool inside JustTrace, our
forums, or our
JustTrace or
JustMock portals.