Sets the current culture for the duration of a test.
The culture remains set until the test completes and is then reset to its original value.
Examples
Inheritance Hierarchy
SystemAttribute
TypeMockDecoratorAttribute
TypeMock.ArrangeActAssertUseCultureAttribute
Namespace: TypeMock.ArrangeActAssert
Assembly: Typemock.ArrangeActAssert (in Typemock.ArrangeActAssert.dll) Version: 9.3.6.0 (9.3.6.0)
Syntax
The UseCultureAttribute type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | UseCultureAttribute |
Default constructor
|
Properties
Name | Description | |
---|---|---|
![]() | Culture |
Gets or sets the culture value to use in the test thread
|
![]() | HasTearDown |
Signals that the test has a teardown method
(Inherited from DecoratorAttribute.) |
![]() | IgnoreStaleMocks |
When set Typemock will not track stale mocks.
A stale mock is an object that was faked in a previous test is used in current test.
This may lead to an unexpected behavior.
(Inherited from DecoratorAttribute.) |
![]() | IsTearDown |
Signals that the method being called is a teardown method
(Inherited from DecoratorAttribute.) |
![]() | OriginalContext |
Retrieves the instance that the original method was called with.
(Inherited from DecoratorAttribute.) |
![]() | OriginalMethod |
Retrieves the Original method info (the method which is tagged by the attribute)
(Inherited from DecoratorAttribute.) |
![]() | OriginalParams |
Retrieves the original parameters that were passed to the original method
(Inherited from DecoratorAttribute.) |
![]() | TypeId | When implemented in a derived class, gets a unique identifier for this Attribute. (Inherited from Attribute.) |
Methods
Name | Description | |
---|---|---|
![]() | CallDecoratedMethod |
Activate the original (decorated) method.
(Inherited from DecoratorAttribute.) |
![]() | DecorateMethodWhenAttributeIsClass |
Filter which methods to Execute the code, when the attribute is on a Class
(Inherited from DecoratorAttribute.) |
![]() | Dispose |
Restores the current thread original culture
|
![]() | DontCallDecoratedMethod |
Stops the decorator from calling the original method which is called automatically
even when Execute method fails to call
CallDecoratedMethod.
(Inherited from DecoratorAttribute.) |
![]() | Equals | Returns a value that indicates whether this instance is equal to a specified object. (Inherited from Attribute.) |
![]() | Execute |
Executes the decorated method with the predefined culture
(Overrides DecoratorAttributeExecute.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Returns the hash code for this instance. (Inherited from Attribute.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | IsDefaultAttribute | When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class. (Inherited from Attribute.) |
![]() | Match | When overridden in a derived class, returns a value that indicates whether this instance equals a specified object. (Inherited from Attribute.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
See Also