The MockManager type exposes the following members.

Methods

  NameDescription
CalledCounterOverloaded.
CalledIndexerCounter
Return the amount of times an indexer has been called
CalledPropertyGetCounter
Return the amount of times a property has been called
CalledPropertySetCounter
Return the amount of times a property has been set
ClearAll
Clears all expectations and mocks
GetInstanceMocksOverloaded.
GetMockAllOverloaded.
GetMockedTypes
Returns all types that are mocked
GetMockOf<(Of <(T>)>)
Returns the mock associated with a specific instance
GetMocksOverloaded.
InitOverloaded.
Initialize the MockManager This is called automatically Defaults to collect call information ONLY for mocked classes
IsTypeMockedOverloaded.
IsTypeMockedAllOverloaded.
MockOverloaded.
Create a new Mock to intercept and mock calls made on the next instance of a type.
MockAllOverloaded.
Create a new Mock to intercept and mock all calls made on all instances of the mocked type.
MockGlobalFunctions
Use this type when mocking global functions
MockObjectOverloaded.
Create a new Dynamic Mock Object and mock all future calls made on the mocked type.
SetLog Obsolete.
SetLog method is obsolete. In order to set logs please use the settings relevant to the execution context: 1. In Visual-Studio, use Isolator options (Typemock->Options->Visual-Studio->Logs) 2. In Command Line (using TMockRunner), use '-logpath' as command line argument 3. In build script, set the matching activity log property.
Verify
Verify all mocked types
VerifyWithTimeoutOverloaded.

Fields

  NameDescription
DynamicMocksAssembly

Properties

  NameDescription
Any Obsolete.
Obsolete, use Check.IsAny()()() instead, Provided for backward compatibility
CollectAllCalls
When set Typemock Isolator collects data on ALL method entries, this can then be verified using CalledCounter(String, String)
CONTINUE_WITH_METHOD
If CONTINUE_WITH_METHOD is returned the mocked method will continue with normal execution. This is an un-mocked expectation that will verify that a method is called only without mocking the method.
InSpecialLicenseChain
A property that indicates if the licence is part of a special Isolator package.
IsInitialized
Check if Typemock Isolator is initialized Init()()()
LogFile Obsolete.
Obsolete, use running options instead, When set Typemock Isolator creates a log-file
ValidateArgsOnVerify Obsolete.
Obsolete. Argument validation is now done both on calling the method and during Verify automatically. Postpone throwing validation errors till Verify()()() is called
Version
Return Typemock Isolator version

See Also