Namespace Mokkit.Act
Classes
- Act
-
Provides static factory methods for starting act operations in the AAA (Arrange-Act-Assert) pattern. This class serves as the entry point for creating act chains that perform the operation(s) under test.
- TestAct
-
Internal implementation of Mokkit.Act.ITestAct that manages the execution of act functions in the AAA pattern. This class collects and executes act functions sequentially during the test act phase.
- TestAct<T>
-
Internal implementation of Mokkit.Act.ITestAct`1 — a result-bearing act that runs its pending steps and then a producer, yielding the produced value when awaited.
Interfaces
- ITestAct<T>
-
Represents a result-bearing act — an act chain whose final operation produces a value of type
T. Awaiting it runs the pending steps and yields that value, so an act operation can return its artifact directly (var result = await Act.SaveClient(command);). - ITestAct
-
Represents the fluent interface for chaining act operations in the AAA (Arrange-Act-Assert) pattern. Act is a first-class phase, symmetric with Mokkit.Arrange.ITestArrange and Mokkit.Inspect.ITestInspect: it performs the operation(s) under test and — like Arrange — may produce artifacts (through captures or a returned result) that later phases observe.
- ITestActAwaiter<T>
-
Provides an awaiter for result-bearing act operations, enabling
var r = await Act.DoThing(...). This interface implements the awaiter pattern to allow direct awaiting of Mokkit.Act.ITestAct`1 instances. - ITestActAwaiter
-
Provides an awaiter for act operations, enabling async/await support for act chains. This interface implements the awaiter pattern to allow direct awaiting of Mokkit.Act.ITestAct instances.
Delegates
- ActAsyncFn
-
Represents an asynchronous act function that performs the operation under test. This delegate is used in the Act phase of the AAA (Arrange-Act-Assert) pattern.
- ActFn
-
Represents a synchronous act function that performs the operation under test. This delegate is used in the Act phase of the AAA (Arrange-Act-Assert) pattern.