[Mono-dev] upgrading nunit to newer version
joel reed
joel.reed at ddiworld.com
Wed Dec 20 08:07:25 EST 2006
Andy Hume wrote:
> 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."
You are correct, but the version built into the mono/olive tree seems to
be 2.0.0, which is too old.
jr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: joel.reed.vcf
Type: text/x-vcard
Size: 405 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20061220/e488580e/attachment.vcf
More information about the Mono-devel-list
mailing list