Namespace Mokkit
Namespaces
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
partialarrange-extension method whose body Mokkit's source generator supplies. The method must be declared in apartialclass and have anout Capture<T>orout Trapture<T>parameter. When the arrange runs, the generator sets that capture tonew T(...), forwarding the method's remaining parameters positionally toT'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
Tis 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.Valueread. - 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.