ExitCodeIs(Int32) Method

Definition

Assembly CliInvoke.dll

Creates a validator that ensures the process exited with the specified exit code.

public static IProcessResultValidator<ProcessResult> ExitCodeIs(int exitCode)

Parameters

exitCode
Int32

The expected exit code.

Returns

IProcessResultValidator<TProcessResult>
A validator enforcing the expected exit code.