# LibTmux.Testing.TestEnvironment

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

The directory and variables a test's tmux runs with.

A test that inherits the developer's environment inherits their tmux too:
<c>TMUX</c> points a new client at the server they are sitting in. Naming
the environment explicitly is what keeps a test off it.

## Members

- `TestEnvironment` (method) — Initializes a test environment.
- `WorkingDirectory` (property) — Gets the directory tmux starts in.
- `Variables` (property) — Gets the variables to set, with null meaning remove.
- `WithVariable` (method) — Answers a copy that also sets one variable.
- `WithoutVariable` (method) — Answers a copy that removes one variable.
