Constructor FixtureMappingManager
- Namespace
- Xunit.v3
- Assembly
- xunit.v3.core.aot.dll
FixtureMappingManager(string, IReadOnlyDictionary<Type, FixtureFactory>, FixtureMappingManager?)
Maps fixture objects using code-generated factories.
public FixtureMappingManager(string fixtureCategory, IReadOnlyDictionary<Type, FixtureFactory> fixtureFactories, FixtureMappingManager? parentMappingManager = null)
Parameters
fixtureCategorystringThe category of fixture (i.e., "Assembly"); used in exception messages
fixtureFactoriesIReadOnlyDictionary<Type, FixtureFactory>The factories which create the fixture objects
parentMappingManagerThe parent mapping manager (used for TryGetFixtureArgument<T>())
Remarks
Open generic fixtures are not supported (meaning, you can register SomeType<int>,
but not SomeType<>), since all factories must be code generated ahead of time.
FixtureMappingManager(string, object[])
FOR TESTING PURPOSES ONLY.
protected FixtureMappingManager(string fixtureCategory, object[] cachedFixtureValues)