Method GetFixture
- Namespace
- Xunit.v3
- Assembly
- xunit.v3.core.aot.dll
GetFixture(Type)
Get a value for the given fixture type. If the fixture type is unknown, then returns null.
public ValueTask<object?> GetFixture(Type fixtureType)
Parameters
fixtureTypeTypeThe type of the fixture
Returns
GetFixture<T>()
Get a value for the given fixture type. If the fixture type is unknown, then returns default.
public ValueTask<T?> GetFixture<T>()
Returns
- ValueTask<T>
Type Parameters
TThe type of the fixture