Assume

"Kelly Anderson" <[email protected]>
Newsgroups gmane.comp.windows.dotnet.nunit.devel
Message-ID <[email protected]>
Charlie,

  I didn't see that you responded to the idea of creating an Assume
class that was the same as the Assert class, except that instead of
throwing the exception, it just returned silently if the result
returned true.

 The example was:

[Test]
public void Divide()
{
  Assume.That(denominator, Is.Not(0));
  Assert.That( ... numerator/denominator ...);
}

  Would that be easy or hard?

  Do you think it's worth having?

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