The ClearMocksAttribute type exposes the following members.

Constructors

  NameDescription
ClearMocksAttribute

Methods

  NameDescription
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.)
DontCallDecoratedMethod
Stops the decorator from calling the original method which is called automatically even when Execute method fails to call CallDecoratedMethod.
(Inherited from DecoratorAttribute.)
Execute
Called by the framework instead of the original method. This will run the original method and afterwards clear the Mock Manager.
(Overrides DecoratorAttribute..::.Execute()()().)

Properties

  NameDescription
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.)

See Also