Table of Contents

Method WithSourceInfo

Namespace
Xunit.Sdk
Assembly
xunit.v3.runner.common.dll

WithSourceInfo(ITestCaseDiscovered, string?, int?)

Creates a new ITestCaseDiscovered, replacing the source file and line number information with the provided values.

public static ITestCaseDiscovered WithSourceInfo(this ITestCaseDiscovered discovered, string? sourceFilePath, int? sourceLineNumber)

Parameters

discovered
sourceFilePath string

The source file

sourceLineNumber int?

The line number

Returns