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