public void ExerciserFailureBubblesUp_ThrowsExceptionByDefault() { NrAssert.Multiple( () => Assert.Throws <Exception>(() => SimpleFailingBenchmark.Execute()), () => Assert.Throws <Exception>(() => SimpleFailingBenchmark.Execute(true))); }
public void ExerciserFailureBubblesUp_ReportsError() { var benchmarkResult = SimpleFailingBenchmark.Execute(false); Assert.Greater(benchmarkResult.CountExceptions, 0); }