简体   繁体   中英

Launching xunit tests from ReSharper under Moles

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?

似乎这是ReSharper中一个未解决的错误:请对该错误报告进行投票,以使其早于而不是晚进行修复:)

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM