Re: Fwd: Fwd: Assume

"Vaughn, Clifton" <[email protected]>
Newsgroups gmane.comp.windows.dotnet.nunit.devel
Message-ID <C1A113F58C449C43AD6FB79FCEF64CDA0681865C@dsp62mail.na.bestbuy.com>
I don't think it needs to cause an error, but it should signal that the
data didn't meet the assumptions unless along with the data you included
a flag to signal when an error should be thrown.

Either a signature like this:

Check.That(meetsAssumptions, 2+2, Is.EqualTo(data) )

Or meetsAssumptions is added as a condition.

Thanks

cliff

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of
Charlie Poole
Sent: Friday, February 15, 2008 12:21 PM
To: [email protected]
Subject: Re: [nunit-developer] Fwd: Fwd: Assume

Hi Kelly,

> > [cliff] How about "Check"
> 
> I could live with that. :-)
> 
> Check.IsTrue(...)
> Check.That(...)
> 
> Those work.

So you guys are saying that
   Check.That( 2+2, Is.EqualTo(5) );
and
   Check.IsTrue( 2+2 == 5 );

would cause a test to return without error?

Am I the only one who finds that odd? :-)

Charlie



------------------------------------------------------------------------
-
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/
_______________________________________________
nunit-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nunit-developer

-------------------------------------------------------------------------
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.