# LibTmux.Testing.TemporaryHierarchyScope

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

- `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)
