Classes
Class | Description | |
---|---|---|
![]() | Assign |
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 |
![]() | CannotEvaluateWhileRecordingException |
TypeMockException is thrown when there is an attempt to evaluate methods inside a recording block.
|
![]() | Check |
This class provides built in Parameter Checkers. See ParameterChecker
and IParameters |
![]() ![]() | ClearMocksAttribute | Used to clean up the defined expectations on MockManager at the end of
each test. This class cant be inherited. |
![]() | DecoratorAttribute |
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.
|
![]() | DefaultRecordBehavior |
Change the default Behavior of Natural Mocks�
|
![]() | DesignModeException |
Can be thrown when using one of the methods that is used in DesignMode.InterfaceOnly
|
![]() ![]() | DontRunAttribute |
TypemockRunnerAttribute signals Isolator automatic runner not to run the decorated method or class automatically
|
![]() | ExpectationBlock |
An expectation block (Enterprise Edition Only)
|
![]() | Generic |
This class helps strongly type generic method types when using Reflective Mocks
|
![]() | InterceptedTypeParams |
This class generate the necessary data of the it recives.
And implements ovveride to Object methods.
|
![]() | InterceptedTypeParamsBuilder |
This class generate the necessary data of the it recives.
|
![]() | Interceptor | |
![]() | MethodCallContext |
Class that contains information about the called instance
|
![]() | MicrosoftBugNET7Check | |
![]() | Mock |
Mock is the Typemock Isolator mock type controller, this class is use for managing the
virtual mocks
|
![]() | MockTMockedType | 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.
|
![]() | MockedEvent |
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. |
![]() | MockedEventsList |
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 |
![]() | MockManager |
MockManager is the Typemock Isolator manager class, this class is the entry point
for creating type mocks
|
![]() | MockMethodCallEventArgs |
Event arguments that are received for the MockMethodCalled.
|
![]() | MockObject |
MockObject is the Typemock Isolator dynamic mock object controller, this class is use for managing the
dynamic mocks
|
![]() | MockObjectTMockedType |
Create an instance of TMockedType and Control the behavior of that instance.
|
![]() | MockScope | Create a new instance of the MockScope that will activate the mock
verification process on its dispose. |
![]() | ModuleInitializer | |
![]() | ObjectState |
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.
|
![]() | ParameterCheckerEventArgs |
Arguments received in custom parameter checker see (ParameterChecker |
![]() | RecorderManager |
Typemock Isolator Natural Mocks� RecorderManager class helps manage the mocks
|
![]() | RecordExpectations |
Typemock Isolator Natural Mocks� RecordExpectations class helps define the mocked expectations
|
![]() | RunnerUtils |
Utilities Methods to use with Typemock Smart Runner
|
![]() | RuntimeTypeParams |
This class generate the necessary data of the it recives.
And implements ovveride to Object methods.
|
![]() | RuntimeTypeParamsBuilder |
This class generate the necessary data of the it recives.
|
![]() | StackOverflowException |
An exception that states that there is a potential StackOverflow exception.
|
![]() | TextualConstants |
A class that contains constants strings for installation and license messages.
|
![]() | TypeEqualityComparer | |
![]() ![]() | TypeMockException |
TypeMockException is thrown when illegal arguments are received by MockManager Examples |
![]() | TypeMockLicenseException |
Can be thrown when trying to use "Pragmatic design mode" but Typemock version don't support it.
|
![]() | TypeMockMethodNotMatchException |
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.
|
![]() | VerifyException |
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) |
![]() | VerifyMessageBuilder |
Helper for building failure messages
|
![]() ![]() | VerifyMocksAttribute | Used to initiate verification at the end of each test. This class cant
be inherited. |
Structures
Structure | Description | |
---|---|---|
![]() | InternalMocking |
A struct that is responsible for enabling and disabling MockManager.
|
Interfaces
Interface | Description | |
---|---|---|
![]() | IIndexGetParameters |
Parameter Checks for mocked Index get methods
|
![]() | IIndexSetParameters |
Parameter Checks for mocked Index set methods
|
![]() | IInterceptorsWrapper | |
![]() | IMethodSettings |
Perform Behavior tweaking on methods rather then the whole mocked type
|
![]() | IMockBehavior |
Typemock Natural Mocks can validates parameter values, collections and arrays,
as well as repeat expectation.
|
![]() | IMockControl |
IMockControl is the Typemock Isolator mock type controller, this interface is use for managing the
virtual mocks
|
![]() | IMockedEvent |
IMockedEvent is the Typemock Isolator Event Mocking mechanism, used to fire events to test Event driven applications.
|
![]() | IParameters |
Typemock Isolator can validates parameter values, collections and arrays.
To do so just pass the list of expected parameter values to the Args
method.
|
![]() | IPropertyParameters |
Parameter Checks for mocked Property set methods
|
![]() | TypeParamsBuilder |
This class generate the necessary data of the it recives.
|
Delegates
Delegate | Description | |
---|---|---|
![]() | DynamicReturnValue |
Delegate to implement a custom return value
|
![]() | InterceptorGetInterceptedTypeDelegate | |
![]() | InterceptorIsInterceptedDelegate | |
![]() | MockMethodCalledEventHandler |
Event that is fired after a mocked method is called and after validation is performed
|
![]() | ParameterChecker |
This might become Obsolete, please use ParameterCheckerEx. Delegate to implement a custom parameter checker
|
![]() | ParameterCheckerEx |
Delegate to implement a custom parameter checker
|
Enumerations
Enumeration | Description | |
---|---|---|
![]() | Constructor |
Scope of Constructors to Mock. see MockManager.Mock(Type, Constructor) |
![]() | StrictFlags |
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.
|
![]() | VerifyMode |
Verify Mode is the way that Typemock Isolator verifies uncalled expected methods
|