Debugging in VS2012 using NUnit without exception?

I have NUnit running in VS2012 with a NUnit test adapter, and I can run all the tests perfectly, but if I want to debug all the tests every time I click Assert, it throws an exception. How can I make exception throws for Asserts? Am I doing something terribly wrong?

+4
source share
1 answer

When the debugger is connected, failed requests throw an exception. This is the intended behavior. No need to worry.

You can stop Visual Studio from stopping with certain exceptions by going to Debug β†’ Exceptions ... and unchecking all or some of the elements in the corresponding group, from the β€œAbandoned” column to β€œBreak when exception:”.

The Exceptions dialog box

+5
source

All Articles