TestHostLaunchContext Class

Definition

Carries the fully prepared information the platform would have used to start the test host, passed to an ITestHostLauncher.

public sealed class TestHostLaunchContext
type TestHostLaunchContext = class
Public NotInheritable Class TestHostLaunchContext
Inheritance
TestHostLaunchContext

Constructors

Name Description
TestHostLaunchContext(String, IReadOnlyList<String>, IReadOnlyDictionary<String,String>, String)

Initializes a new instance of the TestHostLaunchContext class.

Properties

Name Description
Arguments

Gets the arguments, already including the test host controller PID option.

EnvironmentVariables

Gets the final environment for the test host, after all ITestHostEnvironmentVariableProvider ran. Includes the controller-to-host IPC pipe name the host must connect back on.

FileName

Gets the test host executable path the platform would have started.

WorkingDirectory

Gets the working directory, or null to inherit the current one.

Applies to