Calling Tested Methods

Method

Description

Isolate.Invoke.Method(<instance>, "<method_name>", <list_of_arguments>);

Invokes a private method.

Isolate.Invoke.StaticConstructor(typeof(<type>));

Invokes a static constructor.

Isolate.Invoke.Event(() => <event> += <optional list of arguments>);

Fires an event.

var obj = Isolate.NonPublic.CreateInstance<type>(<list of arguments>);

Creates an instance of a type with a private constructor.