Common validation rules for processing Process results.
These rules validate instances of TProcessResult,
which must inherit from ProcessResult.
public static class CommonValidationRules<TProcessResult>
where TProcessResult : ProcessResult
kind:method, kind:property, kind:ctor. Press Esc to clear.RequiresExitCodeZeroA predefined validation rule that ensures the process result's exit code is zero.ExitCodeZeroRule()A self-describing validation rule that ensures the process exited with a zero exit code.NoValidation()A validation rule that always returns true, effectively bypassing any validation logic.RequiresAllowedExitCode(Int32[])A validation rule that checks whether the process result's exit code is one of the specified allowed exit codes.RequiresExitCode(Int32)A validation rule that checks whether the process result's exit code matches the specified value.RequiresStandardErrorIsEmpty()A validation rule that checks whether the process result's standard error output is empty or contains only whitespace. Only meaningful when the result is a BufferedProcessResult; results that do not expose standard error text pass the rule.RequiresStandardOutputMatches(String)A validation rule that checks whether the process result's standard output matches the supplied regular expression. Only meaningful when the result is a BufferedProcessResult; results that do not expose standard output text fail the rule.StandardErrorIsEmptyRule()A self-describing validation rule that ensures the process result's standard error is empty.StandardOutputMatchesRule(String)A self-describing validation rule that ensures the process result's standard output matches the supplied regular expression.