Method Create
- Namespace
- Xunit
- Assembly
- xunit.v3.runner.utility.netfx.dll
Create(XunitProjectAssembly, ISourceInformationProvider?, IMessageSink?, ITestProcessLauncher?)
Returns an implementation of IFrontController which can be used for both discovery and execution.
If the assembly does not appear to be a test assembly, returns null
.
public static IFrontController? Create(XunitProjectAssembly projectAssembly, ISourceInformationProvider? sourceInformationProvider = null, IMessageSink? diagnosticMessageSink = null, ITestProcessLauncher? testProcessLauncher = null)
Parameters
projectAssembly
The test project assembly.
sourceInformationProvider
The optional source information provider.
diagnosticMessageSink
The optional message sink which receives IDiagnosticMessage and IInternalDiagnosticMessage messages.
testProcessLauncher
The test process launcher, used to launch v3 test processes. If not provided, LocalOutOfProcessTestProcessLauncher will be used. (This value is not used when running v1 or v2 test proceses.)