TestHostLaunchContext Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the TestHostLaunchContext class.
public TestHostLaunchContext(string fileName, System.Collections.Generic.IReadOnlyList<string> arguments, System.Collections.Generic.IReadOnlyDictionary<string,string?> environmentVariables, string? workingDirectory);
new Microsoft.Testing.Platform.Extensions.TestHostControllers.TestHostLaunchContext : string * System.Collections.Generic.IReadOnlyList<string> * System.Collections.Generic.IReadOnlyDictionary<string, string> * string -> Microsoft.Testing.Platform.Extensions.TestHostControllers.TestHostLaunchContext
Public Sub New (fileName As String, arguments As IReadOnlyList(Of String), environmentVariables As IReadOnlyDictionary(Of String, String), workingDirectory As String)
Parameters
- fileName
- String
The test host executable path the platform would have started.
- arguments
- IReadOnlyList<String>
The arguments, already including the test host controller PID option.
- environmentVariables
- IReadOnlyDictionary<String,String>
The final environment for the test host, including the controller-to-host IPC pipe name the host must connect back on.
- workingDirectory
- String
The working directory, or null to inherit the current one.