nunit-core team mailing list archive
-
nunit-core team
-
Mailing list archive
-
Message #00086
[Bug 430100] Re: Assert.Catch<T> should return T instead of System.Exception
** Changed in: nunit-3.0
Status: Confirmed => In Progress
--
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: In Progress
Status in NUnit V2 Test Framework: Fix Committed
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, ....);