New to Telerik JustMockStart a free 30-day trial

Defines how a mock behaves when you do not arrange a call explicitly.

Definition

Namespace:Telerik.JustMock

Assembly:Telerik.JustMock.dll

Syntax:

C#
public enum Behavior

Fields

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

C#
CallOriginal = 3

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

C#
Loose = 0

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

C#
RecursiveLoose = 1

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

C#
Strict = 2