简体   繁体   English

Nunit 2.6 + Resharper 7 + NCrunch + visual studio 2010

[英]Nunit 2.6 + Resharper 7 +NCrunch + visual studio 2010

I had a good time with Nunit 2.6 + ReSharper 7, but after I install Ncrunch, my Visual Studio 2010 just fell apart and I can't run Unit Tests inside the Unit Test Sessions. 我和Nunit 2.6 + ReSharper 7度过了愉快的时光,但在我安装Ncrunch后,我的Visual Studio 2010刚刚崩溃,我无法在单元测试会话中运行单元测试。

Error Message: 错误信息:

The project xxxx has not been built

Typical setup would be 典型的设置是

Project XXXX - No Main XXXX项目 - 没有主要

Project XXXX.Test - Some Code 项目XXXX.Test - 一些代码

Some code in XXXX.Test XXXX.Test中的一些代码

[TestFixture]
public class Entry
{
    [Test]
    public static void ThisWillPass()
    {
        Assert.AreEqual(1,2);
    }


}

Note: I did set the Configuration Manager to "build" on the xxxx.test 注意:我确实在xxxx.test上将Configuration Manager设置为“build”

Please advise. 请指教。

Is your project set as AnyCPU? 您的项目是否设为AnyCPU? If not check the resharper settings for a setting that controls if the framework it uses running the tests is 32bit or 64bit and make sure it is set the same. 如果没有检查resharper设置是否有一个设置来控制它运行测试的框架是32bit还是64bit,并确保它设置相同。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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