Einzelnen Beitrag anzeigen

mjustin

Registriert seit: 14. Apr 2008
3.005 Beiträge
 
Delphi 2009 Professional
 
#2

Re: DUnit - Setup für TestCase

  Alt 16. Sep 2009, 13:54
Hier wird die Klasse TTestSetup erwähnt:

http://dunit.sourceforge.net/README.html#_Extensions

Zitat:
TTestSetup can be used when you wish to set up state exactly once for a test case class (the SetUp and TearDown methods are called once for each test method). For example, if you were writing a suite of tests to exercise some database code, you might subclass TTestSetup and use it to open and close the database before executing the suite.
Viele Grüße,
Michael Justin
habarisoft.com
  Mit Zitat antworten Zitat