Typemock Isolator Natural Mocks� RecorderManager class helps manage the mocks
Inheritance Hierarchy
TypeMockRecorderManager
Namespace: TypeMock
Assembly: TypeMock (in TypeMock.dll) Version: 9.4.1.0 (9.4.1.0)
Syntax
The RecorderManager type exposes the following members.
Properties
| Name | Description | |
|---|---|---|
| LastMockedEvent |
Retrieve the last Mocked Event | |
| VerifyMode |
Get or Set the VerifyMode of the next expectations
|
Methods
| Name | Description | |
|---|---|---|
| CreateMockedObject(Type) |
Create a mocked object
| |
| CreateMockedObject(Type, Constructor) |
Create a mocked object and define constructor Behavior
| |
| CreateMockedObject(Type, Constructor, Object) |
Create a mocked object, define constructor Behavior and pass arguments to constructor
| |
| CreateMockedObject(Type, Constructor, StrictFlags) |
Create a mocked object and define constructor Behavior
| |
| CreateMockedObject(Type, StrictFlags, Object) |
Create a mocked object, define constructor Behavior and pass arguments to constructor
| |
| CreateMockedObject(Type, Constructor, StrictFlags, Object) |
Create a mocked object, define constructor Behavior and pass arguments to constructor
| |
| CreateMockedObjectTMockedType |
Create an instance of TMockedType and mock calls made on the instance
| |
| CreateMockedObjectTMockedType(Constructor, Object) |
Create an instance of TMockedType and mock calls made on the instance, send Constructor behavior and optional arguments
| |
| CreateMockedObjectTMockedType(StrictFlags, Object) |
Create an instance of TMockedType and mock calls made on the instance, send Strictness and optional arguments
| |
| CreateMockedObjectTMockedType(Constructor, StrictFlags, Object) |
Create an instance of TMockedType and mock calls made on the instance, send Constructor behavior Strictness and optional arguments
| |
| Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
| 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 | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetLastRecordedMock |
Get the last recorded mock and use Reflective Typemock Isolator methods.
| |
| GetLastRecordedMockedObject |
Returns the object of the last recorded mock or null if non exists
| |
| GetMockOfT |
Returns the mock associated with a specific instance
| |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| HasNoAccessibleCtor |
A boolean method that checks if the "type" param has a Non-Public construtor.
| |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| StartRecording |
Start a new recording, CAUTION, as long as the recording object is alive ALL methods will be recorded and not called
| |
| StopRecording |
Stop the recording
| |
| ToString | Returns a string that represents the current object. (Inherited from Object.) |
Remarks
Typemock Isolator supports the innovative Natural Mocks� way of defining expectations by recording the expectations. Natural Mocks� are Strongly Typed and thus supports Compile Time Checks and Refactoring. Using Natural Mocks� it is now much simpler to define and create tests that require isolating other parts of the code. Although the Natural Mocks� is easier, it does not cover all the scenarios, and the normal TyepMock.NET way is required. The two way are compatible and can be used together.
See RecordExpectations for examplesSee Also