I have got xunit tests working great; launching them from ReSharper. Now I'm trying to use moles for some test cases. I've got my [Moles]
attribute on the test, with a reference to the moles xunit extension, and yet it's complaining that "Moles requires tests to be IN an instrumented process." I assume this means I need to run it through moles.runner.exe or something. Is there a way to set this up to run using ReSharper to launch it?
Asked
Active
Viewed 804 times
2

Smashery
- 57,848
- 30
- 97
- 128
2 Answers
4
Seems like this is an unresolved bug in ReSharper: please vote for this bug report to have it fixed earlier rather than later :)

Jura Gorohovsky
- 9,886
- 40
- 46
0
I don't use NUnit right now but on my tests I use:
[HostType("Moles")]
public void method()...
Try that and see if it resolves.

Andrew Barber
- 39,603
- 20
- 94
- 123

EricR
- 135
- 1
- 1
- 12