How to debug Nunit test in Visual Studio 2010

前端 未结 5 1391
没有蜡笔的小新
没有蜡笔的小新 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条回答
  •  不知归路
    2021-02-04 02:39

    Running or debugging NUnit tests directly with Visual Studio

    Look ma' no extensions!

    Simply configure your test project so that when you hit F5 (Start debugging) or Ctrl-F5 (Start without debugging) it will automatically start NUnit GUI and execute all tests within it. If any breakpoints get hit, you will also be able to simply debug your test code.

    A step-by-step guide with images shows you exactly how to do it.

    Laziness is the mother of all invention :-)

提交回复
热议问题