Namespace OpenShell.Testing
Classes
- FakeCall
One recorded call on a FakeGateway.
- FakeExecInvocation
A command run request presented to the handlers registered with OnExec(Func<FakeExecInvocation, FakeExecScript?>).
- FakeExecScript
The scripted outcome of a command.
- FakeForwardRequest
A TCP or SSH relay request presented to the handler registered with OnForward(Func<FakeForwardRequest, Stream, CancellationToken, Task>).
- FakeGateway
The in-memory state behind one or more FakeOpenShellClient views, plus the hooks tests use to inspect calls, inject failures, script command results and drive time-dependent behaviour.
- FakeGatewayOptions
Configures a FakeGateway.
- FakeInteractiveFrame
A frame received from the client on an interactive exec session.
- FakeListenerInfo
A local listener created through ListenAsync(string, uint, int, ListenOptions?, CancellationToken) on the fake gateway.
- FakeOpenShellClient
An in-memory IOpenShellClient for unit tests. It keeps realistic state (workspace-scoped stores, name uniqueness, resource versions, pagination, phase transitions, watch streams) and raises the same OpenShellException kinds as the real client, with no network access.
Enums
- FakeInteractiveFrameKind
Kinds of frame a client can send on an interactive exec session.