# LibTmux.Testing.TestEnvironment

- **Module:** LibTmux.Testing
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/320dc64f4b8b7815842471327a5e6b84a1499bf8/src/LibTmux.Testing/TestEnvironment.cs#L11
- **Page:** https://libtmux.org/en/dotnet/latest/reference/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.
