Language

PlannedTest.DeclaringFilePath プロパティ

定義

テストを宣言するソース ファイルのパスを取得します。 この値は、コンパイル時に TestMethodAttributeによってキャプチャされます。呼び出し元情報を伝達しないカスタム test-method 属性を使用してテストを宣言するときに 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

プロパティ値

属性

適用対象