# LibTmux.Testing.TestEnvironment.WithVariable

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

```
LibTmux.Testing.TestEnvironment.WithVariable(name: string, value: string) -> TestEnvironment
```

Answers a copy that also sets one variable.

## Parameters

- `name` (string) — The variable name.
- `value` (string) — The value to give it.

## Returns

The copy.
