PlannedTest.DeclaringFilePath Property

Definition

Gets the source file path that declares the test. This value is captured at compile time by TestMethodAttribute; it can be null when the test is declared via a custom test-method attribute that does not propagate the caller information.

public string? DeclaringFilePath { get; }
[System.Runtime.CompilerServices.Nullable(2)]
public string? DeclaringFilePath { get; }
member this.DeclaringFilePath : string
[<System.Runtime.CompilerServices.Nullable(2)>]
member this.DeclaringFilePath : string
Public ReadOnly Property DeclaringFilePath As String

Property Value

Attributes

Applies to