nunit-core team mailing list archive
-
nunit-core team
-
Mailing list archive
-
Message #01789
[Bug 800089] [NEW] Assert.Throws() hides details of inner AssertionException
Public bug reported:
NUnit 2.5.9.10348
If AssertionException happens in a delegate provided to Assert.Throws()
the diagnostic message does display no details making it hard to know
which of asserts failed:
Test 'Test.Issue' failed:
Expected: <System.InvalidOperationException>
But was: <NUnit.Framework.AssertionException>
instead it would be good to display the assert message if
AssertionException was thrown like:
Test 'Test.Issue' failed:
Expected: <System.InvalidOperationException>
But was: <NUnit.Framework.AssertionException> ("Cannot start with zero")
plus the inner stack trace. Please see the test attached.
** Affects: nunitv2
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of NUnit
Developers, which is subscribed to NUnit V2.
https://bugs.launchpad.net/bugs/800089
Title:
Assert.Throws() hides details of inner AssertionException
Status in NUnit V2 Test Framework:
New
Bug description:
NUnit 2.5.9.10348
If AssertionException happens in a delegate provided to
Assert.Throws() the diagnostic message does display no details making
it hard to know which of asserts failed:
Test 'Test.Issue' failed:
Expected: <System.InvalidOperationException>
But was: <NUnit.Framework.AssertionException>
instead it would be good to display the assert message if
AssertionException was thrown like:
Test 'Test.Issue' failed:
Expected: <System.InvalidOperationException>
But was: <NUnit.Framework.AssertionException> ("Cannot start with zero")
plus the inner stack trace. Please see the test attached.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nunitv2/+bug/800089/+subscriptions
Follow ups
-
[Bug 800089] Re: Assert.Throws() hides details of inner AssertionException
From: Charlie Poole, 2013-10-05
-
[Bug 800089] Re: Assert.Throws() hides details of inner AssertionException
From: Charlie Poole, 2011-12-07
-
[Bug 800089] Re: Assert.Throws() hides details of inner AssertionException
From: Launchpad Bug Tracker, 2011-12-07
-
[Bug 800089] Re: Assert.Throws() hides details of inner AssertionException
From: Charlie Poole, 2011-12-07
-
[Bug 800089] Re: Assert.Throws() hides details of inner AssertionException
From: Charlie Poole, 2011-12-07
-
[Bug 800089] Re: Assert.Throws() hides details of inner AssertionException
From: Charlie Poole, 2011-11-26
-
[Bug 800089] Re: Assert.Throws() hides details of inner AssertionException
From: Charlie Poole, 2011-11-20
-
[Bug 800089] Re: Assert.Throws() hides details of inner AssertionException
From: Charlie Poole, 2011-10-27
-
[Bug 800089] Re: Assert.Throws() hides details of inner AssertionException
From: Charlie Poole, 2011-10-27
-
[Bug 800089] Re: Assert.Throws() hides details of inner AssertionException
From: Launchpad Bug Tracker, 2011-10-27
-
[Bug 800089] Re: Assert.Throws() hides details of inner AssertionException
From: Charlie Poole, 2011-10-27
-
[Bug 800089] Re: Assert.Throws() hides details of inner AssertionException
From: Charlie Poole, 2011-10-26
-
[Bug 800089] Re: Assert.Throws() hides details of inner AssertionException
From: Charlie Poole, 2011-07-16
-
[Bug 800089] Re: Assert.Throws() hides details of inner AssertionException
From: Charlie Poole, 2011-06-21
-
[Bug 800089] Re: Assert.Throws() hides details of inner AssertionException
From: Sergey Sapozhnikov, 2011-06-21
-
[Bug 800089] [NEW] Assert.Throws() hides details of inner AssertionException
From: Sergey Sapozhnikov, 2011-06-21
References