Faking an Instance

The following sections explain how you can fake objects and change the default behavior of a faked object.

When to Use

When an object affects the unit test (for example, it is too slow or requires dependencies to be created), you should create a fake object.

Typemock supports faking visible and non-visible types: