/** * Translates StackOverflowError into AssertFailedException */ private CellValue EvaluateWithCycles(IWorkbook wb, ICell testCell) { IFormulaEvaluator Evaluator = _testDataProvider.CreateFormulaEvaluator(wb); try { return(Evaluator.Evaluate(testCell)); } catch (StackOverflowException) { throw new AssertFailedException("circular reference caused stack overflow error"); } }