Table of Contents

Method RegisterTestCollectionFactoryFactory

Namespace
Xunit.v3
Assembly
xunit.v3.core.aot.dll

RegisterTestCollectionFactoryFactory(Func<ICodeGenTestAssembly, ICodeGenTestCollectionFactory>)

Registers a factory for ICodeGenTestCollectionFactory.

public static void RegisterTestCollectionFactoryFactory(Func<ICodeGenTestAssembly, ICodeGenTestCollectionFactory> factory)

Parameters

factory Func<ICodeGenTestAssembly, ICodeGenTestCollectionFactory>

The test collection factory

Remarks

This is typically called when CollectionBehaviorAttribute is seen at the test assembly level.