# LibTmux.Testing.TmuxTestContext

- **Module:** LibTmux.Testing
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** class
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/6656a563ec9e07ab52e0c3ac96f7704fc94cc0c0/src/LibTmux/Testing/TmuxTestContext.cs#L11
- **Page:** https://libtmux.org/reference/dotnet/libtmux-testing-tmuxtestcontext/

A tmux server a test owns, and the environment it runs in.

Disposing kills the server, so a test that forgets a session still leaves
nothing behind. The environment is reported so a test can spawn its own
processes the same way tmux was spawned.

## Members

- `TmuxTestContext` (method)
- `Server` (property) — Gets the server this test owns.
- `Environment` (property) — Gets the directory and variables the server was started with.
- `DisposeAsync` (method)
