Interface
ISetupBehavior

Defines the expected behavior for a setup.

Definition

Namespace:Telerik.JustMock.Expectations.Abstraction

Assembly:Telerik.JustMock.dll

Syntax:

cs-api-definition
public interface ISetupBehavior

Methods

InSequence()

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

Declaration

cs-api-definition
IAssertable InSequence()

Returns

IAssertable

Remarks

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

OnAllThreads()

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

Declaration

cs-api-definition
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