# LibTmux.Testing.TmuxTestContext

- **Module:** LibTmux.Testing
- **Package:** LibTmux
- **Language:** C#
- **Kind:** class
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/cf34b255c896d19a97e7d7fabea58609c916012d/src/LibTmux.Testing/TmuxTestContext.cs#L11
- **Page:** https://libtmux.org/en/csharp/latest/reference/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

### Other members

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