Natural Mocks™


Typemock Isolator supports the innovative Natural Mocks™ way of defining expectations by recording them. Natural Mocks are strongly typed and thus supports Compile Time Checks and Refactoring.

With Natural Mocks™ it is much simpler to define and create tests that require isolating other parts of the code. Although Natural Mocks™ is easier, it does not cover all scenarios and in some cases reflective Typemock is required. The two are compatible and can be used together.

Using Natural Mocks™
Typemock Isolator has three main entry classes for using Natural Mocks™:

RecorderManager Class

The RecorderManager class has two major methods:

RecordExpectations Class

The RecordExpectations class has the following major methods:

MockManager Class

The MockManager class is used to verify that all expectations have been satisfied


Copyright © Typemock Ltd. 2004-2010. All Rights Reserved.