Exemple #1
0
        protected override TestResultsSummary GetAllTestResultsImpl(bool shouldThrowException)
        {
            TestResultContainer resultInException = allTestResult_.FirstOrDefault(tr => tr.Exception != null);
            Exception           ex = resultInException?.Exception ?? Exception;

            if (shouldThrowException && ex != null)
            {
                throw new EyesException("Error", ex);
            }
            return(new TestResultsSummary(allTestResult_));
        }
Exemple #2
0
 public void AggregateResult(TestResultContainer testResult)
 {
     allTestResult_.Add(testResult);
 }