Skip to content
airstandley edited this page Jun 19, 2018 · 5 revisions

A method marked with the Setup attribute is run before each test method in the test fixture is run.

Note: If more than one method is decorated with this attribute the first method found will be executed (not recommended!).

Examples

[TestFixture]
TTestSomething = class
  [Setup]
  procedure TestSetup;
  [Test]
  procedure Test_That_Something_Works;
...
Clone this wiki locally