コード例 #1
0
        public void ErrorNotThrownWhenLoggedExceptionHasIndexerProperty()
        {
            ILog log = LogManager.GetCurrentClassLogger();
            ExceptionWithIndexerException exception = new ExceptionWithIndexerException();

            Assert.That(() => log.Error("error catched", exception), Throws.Nothing);
        }
コード例 #2
0
 public void ErrorNotThrownWhenLoggedExceptionHasIndexerProperty()
 {
     ILog log = LogManager.GetCurrentClassLogger();
     ExceptionWithIndexerException exception = new ExceptionWithIndexerException();
     Assert.That(() => log.Error("error catched", exception), Throws.Nothing);
 }