ITestHostHandle.ExitCode Property

Definition

Gets the exit code of the test host.

public int ExitCode { get; }
member this.ExitCode : int
Public ReadOnly Property ExitCode As Integer

Property Value

Remarks

Only valid once HasExited is true (or after WaitForExitAsync(CancellationToken) has completed). Reading it while the host is still running is undefined; implementations are not required to throw.

Applies to