I am having similar issues as those in this thread:
http://www.telerik.com/community/forums/justmock/general-discussions/mocks-failing-to-work-correctly-in-large-test-runs.aspx
Basically, I have some unit tests that work fine when i run them alone, together however, the first test passes, then the rest fail. It seems as if the first tests mocks are successfully intercepted, and then the subsequent tests mocks are not.
The solution it seems is the Mock.Initialize function. Does Mock.Initialize apply to class methods that are not static? If so, is there an example I could take a look at?
http://www.telerik.com/community/forums/justmock/general-discussions/mocks-failing-to-work-correctly-in-large-test-runs.aspx
Basically, I have some unit tests that work fine when i run them alone, together however, the first test passes, then the rest fail. It seems as if the first tests mocks are successfully intercepted, and then the subsequent tests mocks are not.
The solution it seems is the Mock.Initialize function. Does Mock.Initialize apply to class methods that are not static? If so, is there an example I could take a look at?