Table of Contents

Interface ICodeGenTestMethod

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

Represents a test method from xUnit.net v3.

public interface ICodeGenTestMethod : ICoreTestMethod, ITestMethod, ITestMethodMetadata
Inherited Members

Remarks

This interface is used for code generation-based tests.

Properties

BeforeAfterTestAttributes

Gets the BeforeAfterTestAttributes attached to the test method (and the test class, test collection, and test assembly).

DeclaredTypeIndex

Gets the declared type index for the test method. Will return null if the test method resides on the same type as the test class.

IsStatic

Gets a flag which indicates if the test method is static.

SourceFilePath

Gets the source file where the method lives, if known.

SourceLineNumber

Gets the line number in SourceFilePath where the method lives, if known.

TestClass

Gets the test class that this test method belongs to.