Click or drag to resize

ComposedFixtureAddFixtureTFixture Method

Adds a named ITestFixture.

Namespace:  Neon.Xunit
Assembly:  Neon.Xunit (in Neon.Xunit.dll) Version: 2.14.0
Syntax
public void AddFixture<TFixture>(
	string name,
	TFixture subFixture,
	Action<TFixture> action = null,
	int group = -1
)
where TFixture : class, ITestFixture

Parameters

name
Type: SystemString
The fixture name (case insenstitive).
subFixture
Type: TFixture
The subfixture instance.
action (Optional)
Type: SystemActionTFixture
The optional Action to be called when the fixture is initialized. This can be used for things like waiting until the service is actually ready before returning.
group (Optional)
Type: SystemInt32
Optionally specifies the fixture group. Fixtures with group=-1 (the default) will be started one by one before all other fixtures. Fixtures with a group >= 0 will be started in parallel by group starting at the lowest group. All of the fixtures in the same group will be started in parallel on separate threads and the ComposedFixture will wait until all fixtures in a group have started before advancing to the next group.

Type Parameters

TFixture
The new fixture type.
Remarks
See Also