Table of Contents

Namespace Mokkit.Suite

Classes

TestHost

Represents a concrete implementation of Mokkit.Suite.ITestHost that provides dependency injection and service execution capabilities for test scenarios. This class manages the lifecycle of dependency container scopes and executes actions with resolved services from those containers.

TestHostBag

Represents a thread-safe collection for storing and retrieving test-related objects by their type. This class provides a type-based storage mechanism that allows test components to share data and services across test execution phases.

TestHostContext

Represents the execution context for a test host, containing the unique identifier and shared resource bag. This class provides the contextual information needed for dependency container scopes and test execution phases.

TestStage

Represents a test stage that provides the primary entry point for AAA (Arrange-Act-Assert) test operations. This class extends Mokkit.Suite.TestHost to provide convenient factory methods for starting arrange and inspect chains.

TestStageSetup

Represents the setup and initialization phase for test stages, managing the lifecycle of dependency container builders. This class orchestrates the multi-phase initialization process (PreInit → Init → PreBuild → Build) and creates test stages with configured containers.

Interfaces

ITestHost

Represents a test host that provides dependency injection and service execution capabilities for test scenarios. This interface extends System.IDisposable to ensure proper cleanup of resources after test execution. The test host resolves services from configured dependency containers and executes actions with those services.

ITestHostBagAccessor

Provides access to the test host bag, which contains shared resources and state for test execution. This interface allows components to access and modify the test host bag during test operations.