Table of Contents

Namespace Mokkit.Arrange

Classes

Arrange

Provides static factory methods for starting arrange operations in the AAA (Arrange-Act-Assert) pattern. This class serves as the entry point for creating arrange chains that set up test dependencies and state.

ArrangeFnExtensions

Provides extension methods for arrange function delegates to enable fluent chaining of arrange operations. These extensions allow direct chaining of arrange functions without explicitly creating Mokkit.Arrange.ITestArrange instances.

EnsureArrangeExtensions

Ensure helpers for the Arrange phase. They derive a value (from a capture or an inline thunk), guard it as non-empty, and hand it back through a Mokkit.Trapture`1 that later Act/Inspect steps consume transparently. The derivation runs when the arrange chain executes, so the source capture is already populated by the time the value is read.

TestArrange

Internal implementation of Mokkit.Arrange.ITestArrange that manages the execution of arrange functions in the AAA pattern. This class collects and executes arrange functions sequentially during the test arrangement phase.

Interfaces

ITestArrange

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.

ITestArrangeAwaiter

Provides an awaiter for arrange operations, enabling async/await support for arrange chains. This interface implements the awaiter pattern to allow direct awaiting of Mokkit.Arrange.ITestArrange instances.

Delegates

ArrangeAsyncFn

Represents an asynchronous arrange function that sets up test dependencies and state. This delegate is used in the Arrange phase of the AAA (Arrange-Act-Assert) pattern.

ArrangeFn

Represents a synchronous arrange function that sets up test dependencies and state. This delegate is used in the Arrange phase of the AAA (Arrange-Act-Assert) pattern.