Instance Method

setUp()

Provides an opportunity to reset state before each test method in a test case is called.

Declaration

func setUp()

Discussion

The setUp() instance method is called once before each test begins. Override this method to reset state for each test method.

See Also

Setup and Teardown

func tearDown()

Provides an opportunity to perform cleanup after each test method in a test case ends.