예제 #1
0
 public void ExerciserFailureBubblesUp_ThrowsExceptionByDefault()
 {
     NrAssert.Multiple(
         () => Assert.Throws <Exception>(() => SimpleFailingBenchmark.Execute()),
         () => Assert.Throws <Exception>(() => SimpleFailingBenchmark.Execute(true)));
 }
예제 #2
0
        public void ExerciserFailureBubblesUp_ReportsError()
        {
            var benchmarkResult = SimpleFailingBenchmark.Execute(false);

            Assert.Greater(benchmarkResult.CountExceptions, 0);
        }