Table of Contents

Class ConfigReader_Json

Namespace
Xunit.Runner.Common
Assembly
xunit.v3.runner.common.dll

This class is used to read JSON-based configuration information for a test assembly.

public static class ConfigReader_Json
Inheritance
ConfigReader_Json
Inherited Members

Methods

Load(TestAssemblyConfiguration, string?, string?, List<string>?)

Loads the test assembly configuration for the given test assembly.

public static bool Load(TestAssemblyConfiguration configuration, string? assemblyFileName, string? configFileName = null, List<string>? warnings = null)

Parameters

configuration TestAssemblyConfiguration

The configuration object to write the values to.

assemblyFileName string

The test assembly.

configFileName string

The test assembly configuration file.

warnings List<string>

A container to receive loading warnings, if desired.

Returns

bool

A flag which indicates whether configuration values were read.

LoadFromJson(TestAssemblyConfiguration, string, List<string>?)

Loads the test assembly configuration for the given test assembly.

public static bool LoadFromJson(TestAssemblyConfiguration configuration, string jsonText, List<string>? warnings = null)

Parameters

configuration TestAssemblyConfiguration

The configuration object to write the values to.

jsonText string

The configuration JSON, as a string

warnings List<string>

A container to receive loading warnings, if desired.

Returns

bool

A flag which indicates whether configuration values were read.