Table of Contents

Class TigerCliAppRunResult

Namespace
ItTiger.TigerCli.Testing
Assembly
ItTiger.TigerCli.dll
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).
public sealed record TigerCliAppRunResult : IEquatable<TigerCliAppRunResult>
Inheritance
TigerCliAppRunResult
Implements
Inherited Members

Constructors

TigerCliAppRunResult(int, string, string)

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).
public TigerCliAppRunResult(int ExitCode, string StdOut, string StdErr)

Parameters

ExitCode int
The app exit code of the run.
StdOut string
The text captured from Out.
StdErr string
The text captured from Error.

Properties

ExitCode

The app exit code of the run.
public int ExitCode { get; init; }

Property Value

int

StdErr

The text captured from Error.
public string StdErr { get; init; }

Property Value

string

StdErrHtml

Standard error captured as deterministic HTML, or null when HTML capture is off. See StdOutHtml for the capture semantics.
public string? StdErrHtml { get; init; }

Property Value

string

StdOut

The text captured from Out.
public string StdOut { get; init; }

Property Value

string

StdOutHtml

Standard output captured as deterministic HTML (via HtmlSink), or null when the run was not started with TigerCliAppTestHost.WithHtmlCapture. When capture is enabled, TigerCli-rendered output goes to the HTML capture instead of StdOut. Line endings are normalized to \n.
public string? StdOutHtml { get; init; }

Property Value

string