The unitTestBeforeClass method option indicates that the method is a unit test method that is run once before the class is tested.
Only one method in the class can have the unitTestBeforeClass option.
If a unitTestBeforeClass method fails, the first class method executed will be counted as failed.
The unitTestBeforeClass method option in the following examples identifies the method that is run before running a group of unit test methods for a unit test class.
turnonCalculator() unitTestBeforeClass, updating;
begin
create calculator transient;
calculator.switchOn;
end;
initialize() unitTestBeforeClass, updating;
begin
app.initialize;
// ... any other initialization
end;