# LibTmux.Testing.TestEnvironment

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

### Other members

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