Mock.Arrange(() => Helper.DoSomething()).DoInstead(() => called = true);
var worker = newWorker();
I mocked Hepler.DoSomething() method, but if it is called in another thread, Mock.Arrange doesn't work. How can i resolve it?
JustMock dll version is 2014.1.1317.4.
1 Answer, 1 is accepted
answered on 18 Feb 2014, 02:44 PM
Thank you for contacting us.
Unfortunately, this is a limitation in JustMock. The good news is we are working on it in order to have it fixed for the future releases. For more information and a possible workaround, please check this forum thread.
I hope this helps.
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.