TestRun Classe

Definizione

Fornisce l'accesso ambientale alle informazioni sull'esecuzione del test attualmente in esecuzione.

public static class TestRun
[System.Diagnostics.CodeAnalysis.Experimental("MSTESTEXP", UrlFormat="https://aka.ms/mstest/diagnostics#{0}")]
[System.Runtime.CompilerServices.Nullable(0)]
public static class TestRun
type TestRun = class
[<System.Diagnostics.CodeAnalysis.Experimental("MSTESTEXP", UrlFormat="https://aka.ms/mstest/diagnostics#{0}")>]
[<System.Runtime.CompilerServices.Nullable(0)>]
type TestRun = class
Public Class TestRun
Ereditarietà
TestRun
Attributi

Commenti

Current restituisce sempre un valore nonnullITestRunInfo; prima che i test inizino l'esecuzione esponga raccolte vuote.

Le informazioni hanno come ambito il processo corrente e (in .NET Framework) l'AppDomain corrente. I test cross-process o cross-AppDomain vengono eseguiti ognuno con uno snapshot specifico.

Proprietà

Nome Descrizione
Current

Ottiene informazioni sull'esecuzione del test attualmente in esecuzione. Non restituisce nullmai .

Si applica a