使用NUnit调试VS2012而不会抛出异常? [英] Debugging in VS2012 with NUnit without throwing exceptions?
问题描述
当调试器被附加时,失败断言抛出异常。这是行为。无需担心。
您可以停止Visual Studio停止某些例外,进入Debug - > Exceptions ...和取消选中相应组中的所有或某些项目,从异常时断开:框中的抛出列中选中。
I have NUnit running into VS2012 with the NUnit Test Adapter and I can do Run All tests fine, but if I want to Debug All Tests every time I hit an Assert it throws an exception. How do I make it not throw exceptions for Asserts? Am I doing something horribly wrong?
When the debugger is attached, failed asserts throw exceptions. This is intended behaviour. No need to be alarmed.
You can stop Visual Studio from stopping at certain exceptions, by going into Debug -> Exceptions... and unchecking all or some items in the appropriate group, from the column "Thrown" in the "Break when an exception is:" box.
这篇关于使用NUnit调试VS2012而不会抛出异常?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!