ExitCodeIsOneOf(Int32[]) Method

Definition

Assembly CliInvoke.dll

Creates a validator that ensures the process exited with one of the allowed exit codes.

public static IProcessResultValidator<ProcessResult> ExitCodeIsOneOf(params int[] exitCodes)

Parameters

exitCodes
Int32[]

The set of permitted exit codes.

Returns

IProcessResultValidator<TProcessResult>
A validator enforcing one of the allowed exit codes.