Sets the apartment state to be used to run the decorated test and its children
unless subsequently overridden.
Namespace:
MbUnit.FrameworkAssembly: MbUnit (in MbUnit.dll) Version: 3.3.0.0 (3.3.610.0)
Syntax
| C# |
|---|
public class ApartmentStateAttribute : TestDecoratorPatternAttribute |
| Visual Basic (Declaration) |
|---|
Public Class ApartmentStateAttribute _ Inherits TestDecoratorPatternAttribute |
Remarks
If no apartment state is specified or if it is Unknown the test will inherit the apartment state of its parent test. Consequently if the apartment state is set on the fixture then its tests will use the same apartment state unless overridden.
The default apartment state for a test assembly is STA and may be overridden by setting ApartmentStateAttribute attribute on the assembly.
Inheritance Hierarchy
System..::.Object
System..::.Attribute
Gallio.Framework.Pattern..::.PatternAttribute
Gallio.Framework.Pattern..::.DecoratorPatternAttribute
Gallio.Framework.Pattern..::.TestDecoratorPatternAttribute
MbUnit.Framework..::.ApartmentStateAttribute
System..::.Attribute
Gallio.Framework.Pattern..::.PatternAttribute
Gallio.Framework.Pattern..::.DecoratorPatternAttribute
Gallio.Framework.Pattern..::.TestDecoratorPatternAttribute
MbUnit.Framework..::.ApartmentStateAttribute
