Re: Assume

"Kelly Anderson" <[email protected]>
Newsgroups gmane.comp.windows.dotnet.nunit.devel
Message-ID <[email protected]>
On Fri, Feb 15, 2008 at 1:44 PM, Daniel M. Pomerantz
<[email protected]> wrote:
> How about anything inside of Assume throws an AssumptionException.

Right. That's what I proposed. The thing is that I think NUnit should
consume the AssumptionException. If you can think of a way that NUnit
should process that differently than a successful Test, let's talk
about it. I see it as similar to ExpectedException throwing an
exception, and that being seen as a success.

>  Inside of your code, wrap your method inside of a try that catches
>  AssumptionExceptions and then swallows it.  That way, you can succeed
>  even if the assumptions fail?

I don't think you want to be catching the AssumptionException yourself
generally... think of ExpectedException as the model for how this
could work.

-Kelly

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.