On this page
LibTmux.Testing.TmuxTestFactory
- Module
- LibTmux.Testing
- Package
- LibTmux
- Source
- src/LibTmux/Testing/TmuxTestFactory.cs
-
Makes the tmux objects a test needs, each owning its own cleanup.
Every scope this hands out is disposable, and disposing unwinds as far as the scope owns: a session scope removes the session, a server scope kills the server. A test that takes a scope therefore cannot leak a tmux server, even when it fails part way through.
6 declared, 0 inherited
Members
- CreateContextAsync method Starts a server this test owns, with its environment.
- CreateHierarchyAsync method Starts a server, session, window, and pane a test can type into.
- CreateServerAsync method Starts a server this test owns.
- CreateSessionAsync method Starts a server and a session in it, both owned by this test.
- CreateWindowAsync method Starts a server, a session, and a window, all owned by this test.
- TmuxTestFactory method Initializes a factory.