This is the entry point to all AAA APIs.
Use it to fake, swap, set method behavior and verify calls.
The Isolate APIs use fluent interfaces, thus
Inheritance Hierarchy
TypeMock.ArrangeActAssertIsolate
Namespace: TypeMock.ArrangeActAssert
Assembly: Typemock.ArrangeActAssert (in Typemock.ArrangeActAssert.dll) Version: 9.3.6.0 (9.3.6.0)
Syntax
The Isolate type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | Isolate |
Properties
Name | Description | |
---|---|---|
![]() ![]() ![]() | Fake |
A read-only property, used to fake a new object.
|
![]() ![]() ![]() | Invoke |
A read-only property, used to invoke the object's private\static methods.
|
![]() ![]() ![]() | NonPublic |
A read-only property, used to fake Non-Public members
|
![]() ![]() ![]() | Swap |
A read-only property, used to swap objects and behaviors
|
![]() ![]() ![]() | Verify |
Return a verifying object that can verify calls were made or not, and check if their arguments were sent correctly.
|
Methods
Name | Description | |
---|---|---|
![]() ![]() ![]() | CleanUp |
CleanUp should be called at the end of a test. It can be substituted with the IsolatedAttribute.
The method cleans all the mockes the have been created by the test.
|
![]() | Equals | (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.) |
![]() ![]() | GetFakeT |
Get a fake that was automatically created by Isolate.Fake.Dependencies()
|
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() ![]() ![]() | WhenCalled(Action) |
Accepts a method in the form of a Lambda expression, to set a specific behavior on it.
|
![]() ![]() ![]() | WhenCalledT1(ActionT1) |
Accepts a method in the form of a parametric Lambda expression, to set a specific behavior on it.
The expression's parameters are used to define custom argument matching.
|
![]() ![]() ![]() | WhenCalledT(FuncT) |
Accepts a method in the form of a Lambda expression, to set a specific behavior on it.
|
![]() ![]() ![]() | WhenCalledT1, T2(ActionT1, T2) |
Accepts a method in the form of a parametric Lambda expression, to set a specific behavior on it.
The expression's parameters are used to define custom argument matching.
|
![]() ![]() ![]() | WhenCalledT1, TResult(FuncT1, TResult) |
Accepts a method in the form of a parametric Lambda expression, to set a specific behavior on it.
The expression's parameters are used to define custom argument matching.
|
![]() ![]() ![]() | WhenCalledT1, T2, T3(ActionT1, T2, T3) |
Accepts a method in the form of a parametric Lambda expression, to set a specific behavior on it.
The expression's parameters are used to define custom argument matching.
|
![]() ![]() ![]() | WhenCalledT1, T2, TResult(FuncT1, T2, TResult) |
Accepts a method in the form of a parametric Lambda expression, to set a specific behavior on it.
The expression's parameters are used to define custom argument matching.
|
![]() ![]() ![]() | WhenCalledT1, T2, T3, TResult(FuncT1, T2, T3, TResult) |
Accepts a method in the form of a parametric Lambda expression, to set a specific behavior on it.
The expression's parameters are used to define custom argument matching.
|
See Also