Table of Contents

Class ModeDetector

Namespace
Splat
Assembly
Splat.dll

A helper class which detect if we are currently running via a unit test or design mode.

public static class ModeDetector
Inheritance
ModeDetector

Methods

InUnitTestRunner()

Gets a value indicating whether we are currently running from a unit test.

public static bool InUnitTestRunner()

Returns

bool

If we are currently running from a unit test.

OverrideModeDetector(IModeDetector)

Overrides the mode detector with one of your own provided ones.

public static void OverrideModeDetector(IModeDetector modeDetector)

Parameters

modeDetector IModeDetector

The mode detector to use.