Debug.WriteLine("Error {0} while loading {1}", e.Message, uri); uri being the string uri of the view in question...
On Thu, Mar 22, 2012 at 1:24 PM, DotNet Dude <adotnetd...@gmail.com> wrote: > On Thu, Mar 22, 2012 at 1:35 PM, Stephen Price > <step...@perthprojects.com> wrote: > > Cross posting this, I'm on too many lists. Hope that doesn't offend... > > > > I've got a unit test that is throwing an exception. (Finally got it > hitting > > my catch block) Its a smoke test so has a loop in it for every view. I > want > > it to NOT fail the test if an exception is hit. I want it to output to > debug > > window or whatever and continue. > > > > Is that possible? even when I handle the exception with a try catch > block , > > it still fails the test. > > What's inside your catch block? Perhaps the code in there is throwing > an exception itself? > > > > > cheers, > > Stephen >