# LibTmux.Testing.TemporaryHierarchyScope

- **Module:** LibTmux.Testing
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** class
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/6656a563ec9e07ab52e0c3ac96f7704fc94cc0c0/src/LibTmux/Testing/TemporaryHierarchyScope.cs#L12
- **Page:** https://libtmux.org/reference/dotnet/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

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