Table of Contents

Class InProcessTestProcessLauncher

Namespace
Xunit.v3
Assembly
xunit.v3.runner.utility.netfx.dll

Implementation of ITestProcessLauncher that will launch an xUnit.net v3 test in-process.

public sealed class InProcessTestProcessLauncher : ITestProcessLauncher
Inheritance
InProcessTestProcessLauncher
Implements
Inherited Members

Remarks

Note that this will require the runner author to implement dependency resolution, as no attempt to do so is done here.

Properties

Instance

Gets the singleton instance of InProcessTestProcessLauncher.

public static InProcessTestProcessLauncher Instance { get; }

Property Value

InProcessTestProcessLauncher

Methods

Launch(XunitProjectAssembly, IReadOnlyList<string>)

Launches the test process. Returns null if the process could not be launched.

public ITestProcess? Launch(XunitProjectAssembly projectAssembly, IReadOnlyList<string> arguments)

Parameters

projectAssembly XunitProjectAssembly

The test project assembly

arguments IReadOnlyList<string>

The list of arguments to be passed to the in-process runner

Returns

ITestProcess