Re: Addin SetUp question
Andreas Schlapsi <[email protected]>
| Newsgroups | gmane.comp.windows.dotnet.nunit.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Charlie,
Charlie Poole schrieb:
> There is clearly a need for a class that represents all the
> test cases run using the same test method. The current
> NUnit hierarchy is
> Test <-- TestCase <-- TestMethod <-- NUnitTestMethod
> <-- TestSuite <-- TestFixture <-- NUnitTestFixture
> with only TestSuite's having child tests.
>
> I'm thinking of allowing all tests to have children and
> dropping TestCase from the hierarchy. A new TestCase
> class would be used as a child of a TestMethod and would
> represent the execution of the method with one set of
> arguments.
>
> Comments?
>
How would the new class hierarchy look like?
Test <-- TestMethod <-- NUnitTestMethod
<-- New TestCase (with arguments)
<-- TestSuite <-- TestFixture <-- NUnitTestFixture
The summary comment at the TestCase class says: "In the present
implementation, the only derived class is TestMethod, but we allow for
future test cases which are implemented in other ways."
What could be other ways to implement a test case? Wouldn't dropping the
TestCase class from the hierarchy make it harder to implement those
other ways?
I agree with you about the new TestCase class. But I think it should be
derived from NUnitTestMethod.
Andreas
> 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/