INTERNAL USE ONLY: Defines the behavior of a Neon Xunit test fixture.
|All test fixture implementations must inherit from TestFixture to work properly. Do not attempt to create a fixture from scratch that implements this interface.|
Thetype exposes the following members.
Returns true if the fixture has been started.
Used by unit test classes to persist arbitrary name/value information across individual unit tests.
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.(Inherited from IDisposable.)
Called when an already started fixture is being restarted. This provides the fixture an opportunity to do some custom initialization.
INTERNAL USE ONLY: Resets the fixture state.
Xunit test fixtures are designed to provide initialize global state that tests can then reference during their execution. Typical scenarios include:
Test fixture lifecycle:
The test runner creates a new instance of the test class for each test method to be invoked. The test class constructor must accept a single parameter with type TFixture. The test class constructor should call Start(Action) to initialize the fixture, passing an optional Action that does any custom initialization for the test.
The Action parameter is generally intended for internal use when implementing custom test fixtures.
Test fixtures are designed to be aware of whether they've been initialized or not such that only the first call to Start(Action) will perform any necessary initialization (including calling the custom action) and any subsequent calls will do nothing.
|Some test fixtures may define a different different initialization method.|