Run a test or a test fixture under different cultures.

Namespace:  MbUnit.Framework
Assembly:  MbUnit (in MbUnit.dll) Version: 3.4.0.0 (3.4.11.0)

Syntax

C#
public class MultipleCultureAttribute : TestDecoratorPatternAttribute
Visual Basic (Declaration)
Public Class MultipleCultureAttribute _
	Inherits TestDecoratorPatternAttribute

Examples

The following example demonstrates a simple test run under multiple cultures. It will pass under en-US culture but fail under en-GB.
CopyC#
[TestFixture]
public class MyTestFixture
{
    [Test]
    [MultipleCulture("en-US", "en-GB")]
    public void CheckCurrencySymbol()
    {
        Assert.AreEqual("$4.50", String.Format("{0:C}", 4.5d);
    }
}

Inheritance Hierarchy

System..::.Object
  System..::.Attribute
    Gallio.Framework.Pattern..::.PatternAttribute
      Gallio.Framework.Pattern..::.DecoratorPatternAttribute
        Gallio.Framework.Pattern..::.TestDecoratorPatternAttribute
          MbUnit.Framework..::.MultipleCultureAttribute

See Also