Beispiel #1
0
        private void AddToTestResults(ResultSummary singleResult, ResultRecorder resultSummary)
        {
            if (resultSummary == null)
            {
                return;
            }

            if (singleResult.hasExceptions())
            {
                resultSummary.record(singleResult);
            }
            else if (singleResult.getFailureCount() > 0)
            {
                resultSummary.record(singleResult);
            }
            else
            {
                resultSummary.record(singleResult);
            }
        }
        private TestResult NUnitTestResult(ResultSummary concordionResult, string resultPath)
        {
            var testResult = new TestResult(this);

            if (concordionResult.hasExceptions())
            {
                testResult.Error(new NUnitException("Exception in Concordion test: please see Concordion test reports"));
            }
            else if (concordionResult.getFailureCount() > 0)
            {
                testResult.Failure("Concordion Test Failures: " + concordionResult.getFailureCount(),
                                   "for stack trace, please see Concordion test reports");
            }
            else
            {
                testResult.Success(resultPath);
            }

            return(testResult);
        }
        private void AddToTestResults(ResultSummary singleResult, ResultRecorder resultSummary)
        {
            if (resultSummary == null) return;

            if (singleResult.hasExceptions())
            {
                resultSummary.record(singleResult);
            }
            else if (singleResult.getFailureCount() > 0)
            {
                resultSummary.record(singleResult);
            }
            else
            {
                resultSummary.record(singleResult);
            }
        }
        private TestResult NUnitTestResult(ResultSummary concordionResult, string resultPath)
        {
            var testResult = new TestResult(this);

            if (concordionResult.hasExceptions())
            {
                testResult.Error(new NUnitException("Exception in Concordion test: please see Concordion test reports"));
            }
            else if (concordionResult.getFailureCount() > 0)
            {
                testResult.Failure("Concordion Test Failures: " + concordionResult.getFailureCount(),
                                   "for stack trace, please see Concordion test reports");
            } else
            {
                testResult.Success(resultPath);
            }

            return testResult;
        }