Resharper 6.0.2136.89 EAP cannot run test with using Moles. I get error:
Initialization method KassaFrontend.Tests.RequestHandlerTests.Setup threw exception. Microsoft.Moles.Framework.Moles.MoleInvalidOperationException: Microsoft.Moles.Framework.Moles.MoleInvalidOperationException: Moles requires tests to be IN an instrumented process.
In Visual Studio Unit Test, add the following attribute to your unit test method:
[TestMethod]
[HostType("Moles")] // add this attribute
public void Test()
{ ... }
Extensions are also available for most unit test frameworks. Please refer to the Moles manual.
Visual Studio test runner working correct.
Is there any decision taken on if and when this feature will be added to R#?
I've just tested it using Build 6.1.22.27 on 2011-12-04T22:07:08.
Did this issue was fixed on MSTest only, or for Nunit test too ? Because it's seems it doesn't works for nunit (I didn't test for mstest), Is there any thinks to do ?