public void TestException() { Exception ex = new Exception(); logger.Exception(ex); logger.AssertException(ex); }
public void TestException() { Exception e1 = new Exception(); Exception e2 = new Exception(); Assert.Equal(0, progress.Counter.exceptions); progress.Exception("An exception was thrown", e1); Assert.Equal(1, progress.Counter.exceptions); logger.AssertException("An exception was thrown", e1); progress.Exception("An exception was tossed", e2); Assert.Equal(2, progress.Counter.exceptions); logger.AssertException("An exception was tossed", e2); }