Table of Contents

Constructor FactAttribute

Namespace
Xunit
Assembly
xunit.v3.core.dll

FactAttribute(string?, int)

Attribute that is applied to a method to indicate that it is a fact that should be run by the default test runner.

public FactAttribute(string? sourceFilePath = null, int sourceLineNumber = -1)

Parameters

sourceFilePath string

This parameter is provided automatically by the compiler. Do not pass a value for it.

sourceLineNumber int

This parameter is provided automatically by the compiler. Do not pass a value for it.