Thursday, May 23, 2013

UnitTestIsolationException when using ReSharper

In a previous post I introduced the Microsoft Fakes framework. However when I tried to use this framework inside my tests, they always failed with the following message:

Microsoft.QualityTools.Testing.Fakes.UnitTestIsolation.UnitTestIsolationException: UnitTestIsolation instrumentation failed to initialize. Please restart Visual Studio and rerun this test


I discovered that it failed because I was running my tests through the ReSharper test plugin. When I used the Visual Studio Test runner instead, everything worked fine…

Anyone who knows how I can get this working using ReSharper?

1 comment:

Brett Postin said...

I don't think there is a solution yet other than to avoid the use of Microsoft Fakes. There is a thread on the issue here:

With a feature request on YouTrack: