Table of Contents

Method Culture

Namespace
Xunit.Sdk
Assembly
xunit.v3.core.dll

Culture(ITestFrameworkDiscoveryOptions)

Gets the culture to use for discovering tests. null uses the default OS culture; Empty uses the invariant culture; any other value passes the provided value to CultureInfo(string) and uses the resulting object with DefaultThreadCurrentCulture and DefaultThreadCurrentUICulture.

public static string? Culture(this ITestFrameworkDiscoveryOptions discoveryOptions)

Parameters

discoveryOptions

Returns

string

Culture(ITestFrameworkExecutionOptions)

Gets the culture to use for running tests. null uses the default OS culture; Empty uses the invariant culture; any other value passes the provided value to CultureInfo(string) and uses the resulting object with DefaultThreadCurrentCulture and DefaultThreadCurrentUICulture.

public static string? Culture(this ITestFrameworkExecutionOptions executionOptions)

Parameters

executionOptions

Returns

string