Lingua

PlannedTest.DeclaringFilePath Proprietà

Definizione

Ottiene il percorso del file di origine che dichiara il test. Questo valore viene acquisito in fase di compilazione da TestMethodAttribute. Può essere null quando il test viene dichiarato tramite un attributo test-method personalizzato che non propaga le informazioni sul chiamante.

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

Valore della proprietà

Attributi

Si applica a