Method SetCulture
- Namespace
- Xunit.Sdk
- Assembly
- xunit.v3.runner.common.dll
SetCulture(ITestFrameworkDiscoveryOptions, string?)
Sets 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 void SetCulture(this ITestFrameworkDiscoveryOptions discoveryOptions, string? culture)
Parameters
discoveryOptionsculturestring
SetCulture(ITestFrameworkExecutionOptions, string?)
Sets 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 void SetCulture(this ITestFrameworkExecutionOptions executionOptions, string? culture)
Parameters
executionOptionsculturestring