** Also affects: nunit-3.0
Importance: Undecided
Status: New
** Changed in: nunit-3.0
Importance: Undecided => High
** Changed in: nunit-3.0
Status: New => Confirmed
** Changed in: nunit-3.0
Milestone: None => 2.9.2
** Changed in: nunit-3.0
Assignee: (unassigned) => Charlie Poole (charlie.poole)
--
Assert.Catch<T> should return T instead of System.Exception
https://bugs.launchpad.net/bugs/430100
You received this bug notification because you are a member of NUnit
Core Developers, which is the registrant for NUnit Framework.
Status in NUnit Test Framework: Confirmed
Status in NUnit V2 Test Framework: Confirmed
Bug description:
The Assert.Catch<T> should return the generic exception type instead of overly
widened System.Exception. So that code below is possible:
ArgumentException e = Assert.Catch<ArgumentException>( ()=>...);
Assert.That(e.ParamName, ....);
_______________________________________________
Mailing list: https://launchpad.net/~nunit-core
Post to : [email protected]
Unsubscribe : https://launchpad.net/~nunit-core
More help : https://help.launchpad.net/ListHelp