New to Telerik JustMockStart a free 30-day trial

Defines the expected behavior for a setup.

Definition

Namespace:Telerik.JustMock.Expectations.Abstraction

Assembly:Telerik.JustMock.dll

Syntax:

C#
public interface ISetupBehavior

Derived Classes: ActionExpectationCollectionExpectation<TReturn>CommonExpectation<TContainer>FuncExpectation<TReturn>

Methods

Specifies that JustMock should invoke different mock instance for each setup.

C#
IAssertable InSequence()
Returns:

IAssertable

Remarks:

When this modifier is applied for similar type call, the flow of setups will be maintained.

Specifies that the arrangement will be respected regardless of the thread on which the call to the arranged member happens.

C#
IAssertable OnAllThreads()
Returns:

IAssertable

Remarks:

This is only needed for arrangements of static members. Arrangements on instance members are always respected, regardless of the current thread.

Cross-thread arrangements are active as long as the current context (test method) is on the call stack. Be careful when arranging static members cross-thread because the effects of the arrangement may affect and even crash the testing framework.

In this article
DefinitionMethodsInSequence()OnAllThreads()
Not finding the help you need?
Contact Support