PlannedTest.DeclaringFilePath Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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