Table of Contents

Namespace ItTiger.TigerCli.Testing

Classes

TigerCliAppRunResult
Result of a TigerCliAppTestHost run: the process exit code the app would have returned, plus the text captured from Out and Error during the run. Captured text is colour-free (the host pins a no-colour mode for the run).
TigerCliAppTestHost
App-level test host for running a TigerCliApp without the real console input path. The host injects a test shell, queues planned prompt answers (WithTextInput(string), WithSelectIndex(int), WithConfirm(bool), WithMultiSelectIndexes(params int[])), redirects Out and Error for the duration of the run (restoring both in finally), pins a deterministic colour mode so captured output carries no ANSI escapes, restores the process-global active theme the run may have changed through --theme, and returns the captured output plus the exit code as a TigerCliAppRunResult.