A validation rule that checks whether the process result's exit code matches the specified value.
public static Func<TProcessResult, bool> RequiresExitCode(int exitCode)
The expected exit code that the process result must match for the validation to succeed.
TProcessResult as input and
evaluates to true if the exit code matches; otherwise, false.