Mocking Any Methods

To mock any methods:

Set the Design property of the [Isolated] attribute to Pragmatic.

For example:

C#

[Isolated(Design = DesignMode.Pragmatic)]

VB

<Isolated(Design:=DesignMode.Pragmatic)>