Table of Contents

Namespace Mokkit

Namespaces

Mokkit.Act
Mokkit.Arrange
Mokkit.Containers
Mokkit.Inspect
Mokkit.Suite

Classes

Capture<T>

Represents a type-safe, explicit value capture used to carry a value produced during one test phase into a later one. Unlike Mokkit.Trapture`1, this type does not convert implicitly to the captured type — consumers must read Mokkit.Capture`1.Value explicitly, forcing the intent to be visible at the use site.

Capture

Provides static factory methods for creating Mokkit.Capture`1 instances.

MokkitCaptureAttribute

Marks a partial arrange-extension method whose body Mokkit's source generator supplies. The method must be declared in a partial class and have an out Capture<T> or out Trapture<T> parameter. When the arrange runs, the generator sets that capture to new T(...), forwarding the method's remaining parameters positionally to T's constructor. Methods without this marker keep their hand-written bodies, so generated and manual arranges coexist.

Trapture<T>

TRansparent cAPTURE — a value capture that converts implicitly to the captured type, so it can be passed wherever a T is expected without reading Mokkit.Trapture`1.Value explicitly. Use this when the captured value flows transparently into later Arrange/Act steps; use Mokkit.Capture`1 instead when you want to force an explicit .Value read.

Trapture

Provides static factory methods for creating Mokkit.Trapture`1 instances.

Interfaces

ICapture<T>

Read-only contract shared by Mokkit.Capture`1 and Mokkit.Trapture`1. Exposes the captured value once it has been set by the capture system.

ICaptureInitializer<T>

Defines the contract for initializing capture instances with values. This interface is used internally by the capture system to set captured values in a type-safe manner.