# LibTmux.Testing.TmuxNameGenerator

- **Module:** LibTmux.Testing
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** class
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/6656a563ec9e07ab52e0c3ac96f7704fc94cc0c0/src/LibTmux/Testing/TmuxNameGenerator.cs#L14
- **Page:** https://libtmux.org/reference/dotnet/libtmux-testing-tmuxnamegenerator/

Makes names no other test is using.

Two tests that pick the same session name find each other's sessions, and
the failure lands in whichever ran second. A name carries enough randomness
to be unique without a round trip, and the asking variants also check with
the server for the case where something outside the test took the name.

## Members

- `TmuxNameGenerator` (method) — Initializes a generator.
- `CreateSessionName` (method) — Makes a session name.
- `CreateWindowName` (method) — Makes a window name.
- `CreateAvailableSessionNameAsync` (method) — Makes a session name the server does not already hold.
- `CreateAvailableWindowNameAsync` (method) — Makes a window name the session does not already hold.
