Table of Contents

Method RegisterCodeGenTestMethod

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

RegisterCodeGenTestMethod(string, string, CodeGenTestMethodRegistration)

Registers the presence of an xUnit.net v3 test class via code generation.

public static void RegisterCodeGenTestMethod(string testClassIndex, string methodName, CodeGenTestMethodRegistration registration)

Parameters

testClassIndex string

The dictionary index of the test class. This is the C# compilation name for the test class (in the form of global::Namespace.TypeName).

methodName string

The test method name

registration

The test method registration

Remarks

This is typically called when test methods are found during code generation.