1

我希望在 mstest 运行时更改我的装配位置。如果我使用 Visual Studio 运行我的 mstest 单元测试,它会在我的项目文件夹的子文件夹中运行。但是如果我使用 resharper 运行我的 mstest 单元测试,this.GetType().Module.Assembly.Location 的调用会显示 C:/temp/somewhere。

如何更改 resharper 行为?我已经尝试更改 ReSharper -> 选项 -> 工具 -> UnitTesting -> 运行测试。但它没有任何效果。

4

1 回答 1

1

只需取消选中"Shadow-copy assemblies being tested".
测试将从您在"Run tests from"选项中选择的位置运行。

于 2012-07-22T08:38:47.273 回答