On 24 Jun 2004, at 21:10, Tony Bowden wrote:
On Thu, Jun 24, 2004 at 02:59:30PM -0400, Andrew Pimlott wrote:I see this more as a limitation than a feature. It seems to mean that - You need to use the same setup/teardown for all your tests.
Those that need different things aren't testing the same thing and should move to a different class.
Yup.
This misunderstanding seems to be a common one. Novice xUnit users often think that there should be a single test class for every class being tested.
Sometimes this can work; when you don't need text fixtures or where a single set of test fixtures can cover all of a classes functionality.
However many situations require multiple classes each with their own set of fixtures and test behaviour.
Cheers,
Adrian