How to disable exceptional exceptions when testing Windows Phone 7?

I tried to speed up with unit testing in Windows Phone 7, and I have a basic test harness, but when running tests with the debugger attached, Assert failure will lead to VS violation, with the exception of:

AssertFailedException

From what I read, I should be able to stop this behavior by throwing exceptional exceptions. I tried unchecking the User-unhandled checkbox from the Runtime Common Language Exception in the Debug-> Exceptions dialog box, as described in this blog post . This post was about enabling exceptions from the first chance, but I expected the opposite to disable them.

I tried to add the specific exception names described in this blog post , and this also did not work:

Debug Exceptions Dialog

Other information:

I hope someone can point me in the right direction or at least confirm that it really works on their machine.

Ultimately, this is not a big problem; I could start without debugging (CTRL + F5) and, in the end, I shouldn’t have to beat it, since all the tests have to pass, but it’s annoying that I can’t get it to work without breaking into VS.

+4
source share
1 answer

Have you tried this?

http://sgomez.blogspot.com/2009/12/how-to-disable-assert-dialogs-while.html

Add to the configuration file:

 <system.diagnostics> <assert assertuienabled="false"/> </system.diagnostics> 
0
source

All Articles