Enum
Behavior

Specifies the behavior of the mock.

Definition

Namespace:Telerik.JustMock

Assembly:Telerik.JustMock.dll

Syntax:

cs-api-definition
public enum Behavior

Fields

CallOriginal

Specifies that by default all calls made on mock will invoke its corresponding original member unless some expecations are set.

Declaration

cs-api-definition
CallOriginal = 3

Field Value

Behavior

Loose

Specifies that by default mock calls will behave like a stub, unless explicitly setup.

Declaration

cs-api-definition
Loose = 0

Field Value

Behavior

RecursiveLoose

Specifies that by default mock calls will return mock objects, unless explicitly setup.

Declaration

cs-api-definition
RecursiveLoose = 1

Field Value

Behavior

Strict

Specifies that any calls made on the mock will throw an exception if not explictly set.

Declaration

cs-api-definition
Strict = 2

Field Value

Behavior