public void assert_exceptions() { // Nothing happens history.AssertNoExceptions(); history.LogException(new DivideByZeroException()); Exception <AggregateException> .ShouldBeThrownBy(() => history.AssertNoExceptions()) .InnerExceptions.Single().ShouldBeOfType <DivideByZeroException>(); }