logo       

Re: Use of ExpectedExceptionAttribute class in unit tests: msg#00062

windows.dotnet.nunit.devel

Subject: Re: Use of ExpectedExceptionAttribute class in unit tests

On 12/14/05, Boris Partensky <Boris.Partensky@xxxxxxxxxxxxx> wrote:

>
>
> [ExpectedComException(0xEEBF004EL)]
>
> public void TestAddInvalidConstraintToPO()
>
> {
>
> Utils.TestComException(0xEEBF004EL();
>
> }
>
>
>

Some months ago I have proposed changes in ExpectedExceptions, which
allowed to test a particular property of the exception, not only the
message.

For some reason, such a change was not welcomed, but maybe your post
will rise again a discussion about it.

Cheers


--
Svetoslav Milenov (Sunny)


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise