<PackageReference Include="NUnit" Version="3.0.0-alpha-3" />

CultureDetector

public class CultureDetector
CultureDetector is a helper class used by NUnit to determine whether a test should be run based on the current culture.
public string Reason { get; }

Return the last failure reason. Results are not defined if called before IsSupported( Attribute ) is called.

public CultureDetector()

Default constructor uses the current culutre.

public CultureDetector(string culture)

Contruct a CultureDetector for a particular culture for testing.

public bool IsCultureSupported(string[] cultures)

Test to determine if one of a collection of culturess is being used currently.

public bool IsCultureSupported(CultureAttribute cultureAttribute)

Tests to determine if the current culture is supported based on a culture attribute.

public bool IsCultureSupported(string culture)

Test to determine if the a particular culture or comma- delimited set of cultures is in use.