Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/unit-testing/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Unit testing 在resharper 4.5中运行mbunit 3.1测试_Unit Testing_Resharper_Mbunit - Fatal编程技术网

Unit testing 在resharper 4.5中运行mbunit 3.1测试

Unit testing 在resharper 4.5中运行mbunit 3.1测试,unit-testing,resharper,mbunit,Unit Testing,Resharper,Mbunit,我之前使用过mbunit 2,使用它我可以在resharper测试对话框中运行测试 现在有了MBUnit3.1,我读到我不需要任何外部插件。所以我没有加载Gallio并得到了新的MbUnit.dll。在我的测试项目中添加了对它的引用 现在它在VisualStudio中看起来是正确的。我在方法旁边有绿色/黄色的圆圈。 但是如果我单击并选择run,测试不会运行。它们出现在resharper测试对话框中,但文本上方有一条红线,图标为灰色。没有错误信息,因此很难看出有什么问题 我如何让它工作?我怎么看它

我之前使用过mbunit 2,使用它我可以在resharper测试对话框中运行测试

现在有了MBUnit3.1,我读到我不需要任何外部插件。所以我没有加载Gallio并得到了新的MbUnit.dll。在我的测试项目中添加了对它的引用

现在它在VisualStudio中看起来是正确的。我在方法旁边有绿色/黄色的圆圈。 但是如果我单击并选择run,测试不会运行。它们出现在resharper测试对话框中,但文本上方有一条红线,图标为灰色。没有错误信息,因此很难看出有什么问题


我如何让它工作?我怎么看它出了什么问题?

它应该是现成的。我想你安装了Gallio,而不是从zip文件中获取DLL之类的东西

尝试三件事:

  • 添加对Gallio.dll的引用

  • 确保删除对旧MbUnit v2 MbUnit.Framework.dll的所有剩余引用

  • 在Visual Studio输出窗口中查找日志消息