Table of Contents

Method RegisterAssemblyFixtureFactory

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

RegisterAssemblyFixtureFactory(Type, Func<bool, ValueTask<object?>>)

Registers a factory for an assembly-level test fixture.

public static void RegisterAssemblyFixtureFactory(Type type, Func<bool, ValueTask<object?>> factory)

Parameters

type Type

The type of the test fixture

factory Func<bool, ValueTask<object>>

The factory that creates the fixture instance

Remarks

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