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/