StdoutMatches(String) Method

Definition

Assembly CliInvoke.dll

Creates a validator that ensures the buffered process result's standard output matches the supplied regular expression.

public static IProcessResultValidator<ProcessResult> StdoutMatches(string regex)

Parameters

regex
String

The regular expression pattern to evaluate against StandardOutput.

Returns

IProcessResultValidator<TProcessResult>
A validator enforcing a standard output match.