Interface ISetupBehavior
Defines the expected behavior for a setup.
Namespace: Telerik.JustMock.Expectations.Abstraction
Assembly: Telerik.JustMock.dll
Syntax
public interface ISetupBehavior
Methods
InSequence()
Specifies that JustMock should invoke different mock instance for each setup.
Declaration
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
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.