Re: Fwd: Fwd: Assume
"Kelly Anderson" <[email protected]>
| Newsgroups | gmane.comp.windows.dotnet.nunit.devel |
|---|---|
| Message-ID | <[email protected]> |
http://shareandenjoy.saff.net/tdd-specifications.pdf See the bottom of page 7... assumeNotEquals The Assume.That(...) notation was my translation of the Java there to what I thought would be a good "NUnit C#" style... Other translations could be: Assert.Precondition.That(...) Assert.Precondition() Assert.Check() Check() Precondition() etc. etc. But it all boils down to something that acts like Assert, but instead of throwing the test failing exception, it throws an exception that something ok happened because the preconditions weren't met by the data passed into the test. -Kelly On Fri, Feb 15, 2008 at 2:28 PM, Vaughn, Clifton <[email protected]> wrote: > I've read one paper, but I don't recall it explaining great detail about > the Assume.That. I was still left with the question of how the runner > would indicate that the data didn't meet an assumption when you expected > it to. Maybe I'm still missing something though. > > > Thanks > > cliff ------------------------------------------------------------------------- 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/