Table of Contents

Interface ITestFrameworkOptions

Namespace
Xunit.Sdk

This interface should not be consumed directly; instead, you should consume ITestFrameworkDiscoveryOptions or ITestFrameworkExecutionOptions.

public interface ITestFrameworkOptions
Extension Methods

Methods

GetValue<TValue>(string)

Gets an option value.

TValue? GetValue<TValue>(string name)

Parameters

name string

The name of the value.

Returns

TValue

The value.

Type Parameters

TValue

The type of the value.

SetValue<TValue>(string, TValue)

Sets an option value.

void SetValue<TValue>(string name, TValue value)

Parameters

name string

The name of the value.

value TValue

The value to be set.

Type Parameters

TValue

The type of the value.

ToJson()

Converts the test framework options into JSON. Used for serializing the options for sending across a process boundary.

string ToJson()

Returns

string

The serialized framework options.