Table of Contents

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

fixtureCategory string

The category of fixture (i.e., "Assembly"); used in exception messages

fixtureFactories IReadOnlyDictionary<Type, FixtureFactory>

The factories which create the fixture objects

parentMappingManager

The 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)

Parameters

fixtureCategory string
cachedFixtureValues object[]