How to debug Nunit test in Visual Studio 2010

前端 未结 5 1395
没有蜡笔的小新
没有蜡笔的小新 2021-02-04 02:11

I have a problem debugging an NUnit test from VisualStudio. I created an empty project (Console Application), then I added references to the NUnit library and wrote a simple tes

5条回答
  •  -上瘾入骨i
    2021-02-04 02:50

    Had the same problem with NUnit 2.5.3, and eventually found a different solution. See if this works for you:

    Open NUnit GUI and go into Tools menu Settings... dialog. Select Assembly Isolation subsection of Test Loader section in Settings tree. Set the Default Process Model to Run tests dierctly in the NUnit process.

    I had it set to Run tests in a single seperate process, which is why the debugger could not link my dll under test to the symbols for debugging it. I am still using Use a sperate AppDomain per Assembly for my Default Domain Usage.

提交回复
热议问题