语言

PlannedTest.DeclaringFilePath 属性

定义

获取声明测试的源文件路径。 此值在编译时被 TestMethodAttribute捕获;当测试通过不传播调用方信息的自定义测试方法属性声明时,该值可能 null 就是这样。

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

属性值

属性

适用于