Class SetCultureAttribute
Sets the current Culture on an assembly, test fixture or test method for the duration of a test. The culture remains set until the test or fixture completes and is then reset to its original value.
Inherited Members
Namespace: NUnit.Framework
Assembly: nunit.framework.dll
Syntax
[AttributeUsage(AttributeTargets.Assembly|AttributeTargets.Class|AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
public class SetCultureAttribute : PropertyAttribute, IApplyToTest, IApplyToContext
Constructors
View SourceSetCultureAttribute(string)
Construct given the name of a culture
Declaration
public SetCultureAttribute(string culture)
Parameters
Type | Name | Description |
---|---|---|
string | culture |