# LibTmux.Testing.TemporaryHierarchyScope

- **Module:** LibTmux.Testing
- **Package:** LibTmux
- **Language:** C#
- **Kind:** class
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/cf34b255c896d19a97e7d7fabea58609c916012d/src/LibTmux.Testing/TemporaryHierarchyScope.cs#L12
- **Page:** https://libtmux.org/en/csharp/latest/reference/libtmux-testing-temporaryhierarchyscope/

A server, session, window, and pane a test owns together.

Most tests want somewhere to type, which is four objects deep. Making them
one at a time leaves a test holding four scopes and disposing them in the
right order; one scope owns the lot and unwinds from the server, which takes
everything inside it with it.

## Members

### Other members

- `DisposeAsync` (method)
- `Pane` (property): Gets the pane.
- `Server` (property): Gets the server the rest live in.
- `Session` (property): Gets the session.
- `Window` (property): Gets the window.
