Behavior Enumeration

Specifies the behavior of the mock.

Namespace: Telerik.JustMock
Assembly: Telerik.JustMock(in Telerik.JustMock.dll)


public enum Behavior
Visual Basic
Public Enumeration Behavior


Member name Value Description
Loose 0 Specifies that by default mock calls will behave like a stub, unless explicitly setup.
RecursiveLoose 1 Specifies that by default mock calls will return mock objects, unless explicitly setup.
Strict 2 Specifies that any calls made on the mock will throw an exception if not explictly set.
CallOriginal 3 Specifies that by default all calls made on mock will invoke its corresponding original member unless some expecations are set.

See Also

Telerik.JustMock Namespace

Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article