Method GetCulture
- Namespace
- Xunit.Sdk
- Assembly
- xunit.v3.runner.common.dll
GetCulture(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? GetCulture(this ITestFrameworkDiscoveryOptions discoveryOptions)
Parameters
discoveryOptions
Returns
GetCulture(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? GetCulture(this ITestFrameworkExecutionOptions executionOptions)
Parameters
executionOptions