Example #1
0
        private int ToExitCode(TestRunFailureReason reason)
        {
            if (!_options.FailOnPending && reason == TestRunFailureReason.ContainsPendingElements)
            {
                return(0);
            }
            if (!_options.FailFocused && reason == TestRunFailureReason.ContainsFocusedElements)
            {
                return(0);
            }

            return((int)reason);
        }
Example #2
0
 internal static bool IsFailure(this TestRunFailureReason self)
 {
     return((self & TestRunFailureReason.Failure) > 0);
 }