[Mono-dev] upgrading nunit to newer version

Andy Hume andyhume32 at yahoo.co.uk
Wed Dec 20 05:40:46 EST 2006

joel reed wrote:
> because the exception class marked is marked internal, I 
> couldn't use ExpectedExceptionAttribute with a typeof. In 
> nunit 2.2.9, you can do a 
> [ExpectedException("System.InvalidOperationException")], 
> which would I think help in these scenarios.
Err, I think that NUnit feature has been there for a while; that is ExpectedExceptionAttribute(string exceptionName).  I used it in 2.2.7.  I fact, it apparently arrived in 2.2.4, see e.g. http://www.nunit.org/index.php?p=exception&r=2.2.9:
"ExpectedExceptionAttribute [...] The second (NUnit 2.2.4) takes the full name of the expected exception type as a string."


Send instant messages to your online friends http://uk.messenger.yahoo.com 

More information about the Mono-devel-list mailing list