Table of Contents

Struct SourceInformation

Namespace
Xunit.Runner.Common
Assembly
xunit.v3.runner.common.dll

Source information returned by ISourceInformationProvider.

public readonly struct SourceInformation
Inherited Members

Constructors

SourceInformation(string?, int?)

Source information returned by ISourceInformationProvider.

public SourceInformation(string? sourceFile, int? sourceLine)

Parameters

sourceFile string

The source file, if known

sourceLine int?

The line number, if known

Properties

SourceFile

Gets the source file, if known; null, otherwise

public string? SourceFile { get; }

Property Value

string

SourceLine

Gets the source line number, if known; null, otherwise

public int? SourceLine { get; }

Property Value

int?