Isolate Class

Typemock Isolator Developer Guide
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

SystemObject
  TypeMock.ArrangeActAssertIsolate

Namespace:  TypeMock.ArrangeActAssert
Assembly:  Typemock.ArrangeActAssert (in Typemock.ArrangeActAssert.dll) Version: 9.3.6.0 (9.3.6.0)
Syntax

public class Isolate : IHideObjectMethods

The Isolate type exposes the following members.

Constructors

  NameDescription
Public methodIsolate
Top
Properties

  NameDescription
Public propertyStatic memberCode exampleFake
A read-only property, used to fake a new object.
Public propertyStatic memberCode exampleInvoke
A read-only property, used to invoke the object's private\static methods.
Public propertyStatic memberCode exampleNonPublic
A read-only property, used to fake Non-Public members
Public propertyStatic memberCode exampleSwap
A read-only property, used to swap objects and behaviors
Public propertyStatic memberCode exampleVerify
Return a verifying object that can verify calls were made or not, and check if their arguments were sent correctly.
Top
Methods

  NameDescription
Public methodStatic memberCode exampleCleanUp
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.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodStatic memberGetFakeT
Get a fake that was automatically created by Isolate.Fake.Dependencies()
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodStatic memberCode exampleWhenCalled(Action)
Accepts a method in the form of a Lambda expression, to set a specific behavior on it.
Public methodStatic memberCode exampleWhenCalledT1(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.
Public methodStatic memberCode exampleWhenCalledT(FuncT)
Accepts a method in the form of a Lambda expression, to set a specific behavior on it.
Public methodStatic memberCode exampleWhenCalledT1, 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.
Public methodStatic memberCode exampleWhenCalledT1, 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.
Public methodStatic memberCode exampleWhenCalledT1, 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.
Public methodStatic memberCode exampleWhenCalledT1, 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.
Public methodStatic memberCode exampleWhenCalledT1, 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.
Top
See Also

Reference