在调试与VS2012不NUnit的抛出异常? [英] Debugging in VS2012 with NUnit without throwing exceptions?
问题描述
我有NUnit的运行与NUnit测试适配器VS2012,我能做的运行所有测试正常,但如果我想每次调试所有测试,我打它抛出一个异常的断言。我怎么让它不抛出异常的断言?我做得可怕的错误?
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.
您的可以的从某些异常停止停止Visual Studio中,通过进入调试 - >例外...和在取消选择在适当的组全部或部分项目,从列时抛出的休息的时候一个例外是:框中
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.
这篇关于在调试与VS2012不NUnit的抛出异常?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!