[TestMethod]
[ExpectedException(typeof(InvalidOperationException))]
public void Foor()
{
On 22/03/2012 10:35 AM, Stephen Price 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.
cheers,
Stephen