예제 #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_));
        }
예제 #2
0
 public void AggregateResult(TestResultContainer testResult)
 {
     allTestResult_.Add(testResult);
 }