private int ToExitCode(TestRunFailureReason reason) { if (!_options.FailOnPending && reason == TestRunFailureReason.ContainsPendingElements) { return(0); } if (!_options.FailFocused && reason == TestRunFailureReason.ContainsFocusedElements) { return(0); } return((int)reason); }
internal static bool IsFailure(this TestRunFailureReason self) { return((self & TestRunFailureReason.Failure) > 0); }