Feature: Assert.DoesNotThrow() needs exception details
Bug #957899 reported by
Chris Capon
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
NUnit V2 |
Fix Released
|
High
|
Charlie Poole |
Bug Description
NUnit 2.5.10 11092 (Windows)
When Assert.
Unexpected exception: NUnit.Framework
It would be handy if the Assert would also show details about the Exception being thrown. Otherwise, test code has to be changed to find out what went wrong.
Thanks.
Related branches
Changed in nunitv2: | |
status: | Triaged → Fix Committed |
Changed in nunitv2: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Hi,
I m not sure if my response to your query is correct but here is a try:
When ExpectedException is not thrown then the report says Expected
exception: some exception but was some other exception. Will this serve
your purpose because i m not sure if E & F should be expected to show
exception details....just my few pennies!
Jv
On Sat, Mar 17, 2012 at 6:45 PM, Chris Capon <email address hidden> wrote:
> Public bug reported: DoesNotThrow( ) actually does throw an Exception, the Errors .AssertionExcep tion /bugs.launchpad .net/bugs/ 957899 DoesNotThrow( ) needs exception details DoesNotThrow( ) actually does throw an Exception, the .AssertionExcep tion /bugs.launchpad .net/nunitv2/ +bug/957899/ +subscriptions
>
> NUnit 2.5.10 11092 (Windows)
>
> When Assert.
> and Failures window of the GUI does not show any details about the
> exception. Rather, it just shows the provided text parameter and:
>
> Unexpected exception: NUnit.Framework
>
> It would be handy if the Assert would also show details about the
> Exception being thrown. Otherwise, test code has to be changed to find
> out what went wrong.
>
> Thanks.
>
> ** 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:/
>
> Title:
> Feature: Assert.
>
> Status in NUnit V2 Test Framework:
> New
>
> Bug description:
> NUnit 2.5.10 11092 (Windows)
>
> When Assert.
> Errors and Failures window of the GUI does not show any details about
> the exception. Rather, it just shows the provided text parameter and:
>
> Unexpected exception: NUnit.Framework
>
> It would be handy if the Assert would also show details about the
> Exception being thrown. Otherwise, test code has to be changed to
> find out what went wrong.
>
> Thanks.
>
> To manage notifications about this bug go to:
> https:/
>
--
Regards,
Ravichandran Jv ravichandranjv. blogspot. com
http://