[Mono-devel-list] RE: Subclassing needed for unit tests?

Zoltan.2.Varga at nokia.com Zoltan.2.Varga at nokia.com
Mon May 12 07:54:12 EDT 2003


  Subclassing from Assertion means that you do not have to write 'Assertion.' in front of all
assertions, leading to smaller and more readable code. I would suggest using this approach
for all future Nunit tests.



-----Original Message-----
From: ext Nick Drochak [mailto:ndrochak at gol.com]
Sent: May 12,2003 13:00
To: Development, Mono
Cc: Varga Zoltan.2 (NMP/Budapest)
Subject: Subclassing needed for unit tests?


I noticed this in your patch today...

-public class StringTest : TestCase
+public class StringTest : Assertion

Is it necessary to subclass the test from Assertion?  I thought with the
fixture it wasn't necessary anymore with version 2 of Nunit.

Nick D.

More information about the Mono-devel-list mailing list