public void ErrorNotThrownWhenLoggedExceptionHasIndexerProperty() { ILog log = LogManager.GetCurrentClassLogger(); ExceptionWithIndexerException exception = new ExceptionWithIndexerException(); Assert.That(() => log.Error("error catched", exception), Throws.Nothing); }