Teardown - VSoftTechnologies/DUnitX GitHub Wiki

A method with the TearDown attribute is run after each test 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
  [TearDown]
  procedure TestTearDown;
  [Test]
  procedure Test_That_Something_Works;
...