Table of Contents

Method WithAppDomain

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

WithAppDomain(string, string?, bool, string?)

Creates an assembly runner that discovers and run tests in a separate app domain.

public static AssemblyRunner WithAppDomain(string assemblyFileName, string? configFileName = null, bool shadowCopy = true, string? shadowCopyFolder = null)

Parameters

assemblyFileName string

The test assembly.

configFileName string

The test assembly configuration file.

shadowCopy bool

If set to true, runs tests in a shadow copied app domain, which allows tests to be discovered and run without locking assembly files on disk.

shadowCopyFolder string

The path on disk to use for shadow copying; if null, a folder will be automatically (randomly) generated

Returns