Table of Contents

Interface ITestArrange

Namespace
Mokkit.Arrange
Assembly
Mokkit.dll

Represents the fluent interface for chaining arrange operations in the AAA (Arrange-Act-Assert) pattern. This interface allows for sequential setup of test dependencies and state through method chaining.

public interface ITestArrange

Extension Methods

Methods

GetAwaiter()

Gets an awaiter that allows the arrange chain to be awaited using the async/await pattern. This enables the use of 'await' directly on the arrange chain.

ITestArrangeAwaiter GetAwaiter()

Returns

ITestArrangeAwaiter

An awaiter for the arrange operation chain.

Then(ArrangeAsyncFn)

Chains an asynchronous arrange function to be executed in sequence.

ITestArrange Then(ArrangeAsyncFn arrangeFn)

Parameters

arrangeFn ArrangeAsyncFn

The asynchronous arrange function to execute.

Returns

ITestArrange

The current Mokkit.Arrange.ITestArrange instance for method chaining.

Then(ArrangeFn)

Chains a synchronous arrange function to be executed in sequence.

ITestArrange Then(ArrangeFn arrangeFn)

Parameters

arrangeFn ArrangeFn

The synchronous arrange function to execute.

Returns

ITestArrange

The current Mokkit.Arrange.ITestArrange instance for method chaining.