Thank you for contacting us.
I tried the following:
and the test:
Mock.Arrange(() => MfsUtils.MethodStaticA()).Returns(
var actual = MfsUtils.MethodStaticA();
On my side, this does not throw a NotImplementedException(). Further, I also used Behavior.Strict in the Mock.SetupStatic and again the test didn't throw StrictMockException for non arranged call to the MethodStaticB(). Another thing i tried was to assert the occurrences of the MethodStaticB method, with:
Mock.Assert(() => MfsUtils.MethodStaticB(), Occurs.Never()); -> this passed.
Finally, I completely dropped the Mock.SetupStatic and again I was not able to reproduce the issue.
Can you please, send us the logs you mentioned in your ticket for further investigation? Also, providing your project may help a lot. You should be able to attach an archive of it to your next reply.
Thank you for the help in advance.
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