TypeMock Namespace

Typemock Isolator Developer Guide
 
Classes

  ClassDescription
Public classAssign
Passing this class as to Args as a Parameter Checker to mock ref and out parameters. Enterprise Edition users can swap normal argument too. See IParameters
Public classCannotEvaluateWhileRecordingException
TypeMockException is thrown when there is an attempt to evaluate methods inside a recording block.
Public classCheck
This class provides built in Parameter Checkers. See ParameterChecker and IParameters
Public classCode exampleClearMocksAttribute
Used to clean up the defined expectations on MockManager at the end of each test. This class cant be inherited.
Public classDecoratorAttribute
This is the base class for all decorator attributes. In order to implement a custom attribute, need to subclass DecoratorAttribute and implement the abstract method execute.
Public classDefaultRecordBehavior
Change the default Behavior of Natural Mocks�
Public classDesignModeException
Can be thrown when using one of the methods that is used in DesignMode.InterfaceOnly
Public classCode exampleDontRunAttribute
TypemockRunnerAttribute signals Isolator automatic runner not to run the decorated method or class automatically
Public classExpectationBlock
An expectation block (Enterprise Edition Only)
Public classGeneric
This class helps strongly type generic method types when using Reflective Mocks
Public classInterceptedTypeParams
This class generate the necessary data of the it recives. And implements ovveride to Object methods.
Public classInterceptedTypeParamsBuilder
This class generate the necessary data of the it recives.
Public classInterceptor
Public classMethodCallContext
Class that contains information about the called instance
Public classMicrosoftBugNET7Check
Public classMock
Mock is the Typemock Isolator mock type controller, this class is use for managing the virtual mocks
Public classMockTMockedType
Mock is the Typemock Isolator mock type controller, this class is use for managing the virtual mocks, using generic code sugar, to ease the mock creation.
Public classMockedEvent
MockedEvent is used to validate firing of events.

To use this an event must be mocked first, and then the test can fire that event to test that the correct methods are actually called.

Public classMockedEventsList
List of mocked events.

When more than one instance of the event published is mocked, use the MockedEvent.Instance[index] property. The first instance to register to the event will be in index 0, the next instance in 1 and so on.

IMockedEvent
Public classMockManager
MockManager is the Typemock Isolator manager class, this class is the entry point for creating type mocks
Public classMockMethodCallEventArgs
Event arguments that are received for the MockMethodCalled.
Public classMockObject
MockObject is the Typemock Isolator dynamic mock object controller, this class is use for managing the dynamic mocks
Public classMockObjectTMockedType
Create an instance of TMockedType and Control the behavior of that instance.
Public classMockScope
Create a new instance of the MockScope that will activate the mock verification process on its dispose.
Public classModuleInitializer
Public classObjectState
Utility Class that takes a snapshot of all the fields of an object or the static fields of a type , in order to reset all the fields back to the saved state.
Public classParameterCheckerEventArgs
Arguments received in custom parameter checker see (ParameterChecker
Public classRecorderManager
Typemock Isolator Natural Mocks� RecorderManager class helps manage the mocks
Public classRecordExpectations
Typemock Isolator Natural Mocks� RecordExpectations class helps define the mocked expectations
Public classRunnerUtils
Utilities Methods to use with Typemock Smart Runner
Public classRuntimeTypeParams
This class generate the necessary data of the it recives. And implements ovveride to Object methods.
Public classRuntimeTypeParamsBuilder
This class generate the necessary data of the it recives.
Public classStackOverflowException
An exception that states that there is a potential StackOverflow exception.
Public classTextualConstants
A class that contains constants strings for installation and license messages.
Public classTypeEqualityComparer
Public classCode exampleTypeMockException
TypeMockException is thrown when illegal arguments are received by MockManager
Examples

For example when trying to return an incorrect type
Public classTypeMockLicenseException
Can be thrown when trying to use "Pragmatic design mode" but Typemock version don't support it.
Public classTypeMockMethodNotMatchException
TypeMockMethodNotMatchException is thrown, when a method is not found and/or doesn't match specified parameters (for example: generic arguments, return type, arguments types) Also, this is thrown, when a method is ambiguous: more than one method matches to specified parameters.
Public classVerifyException
VerifyException is throw when set expectations are not met (see Mock).

For example when parameters passed are not the ones we expect. When a method is not called or is called too often (in Strict mode)

Public classVerifyMessageBuilder
Helper for building failure messages
Public classCode exampleVerifyMocksAttribute
Used to initiate verification at the end of each test. This class cant be inherited.
Structures

  StructureDescription
Public structureInternalMocking
A struct that is responsible for enabling and disabling MockManager.
Interfaces

  InterfaceDescription
Public interfaceIIndexGetParameters
Parameter Checks for mocked Index get methods
Public interfaceIIndexSetParameters
Parameter Checks for mocked Index set methods
Public interfaceIInterceptorsWrapper
Public interfaceIMethodSettings
Perform Behavior tweaking on methods rather then the whole mocked type
Public interfaceIMockBehavior
Typemock Natural Mocks can validates parameter values, collections and arrays, as well as repeat expectation.
Public interfaceIMockControl
IMockControl is the Typemock Isolator mock type controller, this interface is use for managing the virtual mocks
Public interfaceIMockedEvent
IMockedEvent is the Typemock Isolator Event Mocking mechanism, used to fire events to test Event driven applications.
Public interfaceIParameters
Typemock Isolator can validates parameter values, collections and arrays. To do so just pass the list of expected parameter values to the Args method.
Public interfaceIPropertyParameters
Parameter Checks for mocked Property set methods
Public interfaceTypeParamsBuilder
This class generate the necessary data of the it recives.
Delegates

  DelegateDescription
Public delegateDynamicReturnValue
Delegate to implement a custom return value
Public delegateInterceptorGetInterceptedTypeDelegate
Public delegateInterceptorIsInterceptedDelegate
Public delegateMockMethodCalledEventHandler
Event that is fired after a mocked method is called and after validation is performed
Public delegateParameterChecker
This might become Obsolete, please use ParameterCheckerEx. Delegate to implement a custom parameter checker
Public delegateParameterCheckerEx
Delegate to implement a custom parameter checker
Enumerations

  EnumerationDescription
Public enumerationConstructor
Scope of Constructors to Mock. see MockManager.Mock(Type, Constructor)
Public enumerationStrictFlags
Flags that define the behavior of Arbitrary (not expected) calls. The default is the Methods of Abstract and Interfaces are Strict and Arbitrary calls fail while Arbitrary Methods of concrete classes are allowed.
Public enumerationVerifyMode
Verify Mode is the way that Typemock Isolator verifies uncalled expected methods