Using the Visual Studio .NET Debugger with NUnit-Gui

As you write more and more programmer tests, you might spend less time debugging your application. Small and isolated programmer tests usually do a very good job of narrowing down bugs to a few lines of code. However, sometimes you might need to use a debugger to locate a particularly slippery bug. Let’s say you have a failing programmer test, but you cannot identify the problem by simply looking at the code. Fortunately, using the Visual Studio .NET Debugger with NUnit-Gui is very straightforward.

First, you need to set up NUnit-Gui as your test runner with Visual Studio .NET (this process was described earlier). Second, you need to set a break point in the failing programmer test code and start ...

Get Test-Driven Development in Microsoft® .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.