public void UnwrapHttpUnhandledException_WithHttpUnhandledExceptionContainingNoInnerException_ReturnsNull() { // act Exception exception = SubtextApplication.UnwrapHttpUnhandledException(new HttpUnhandledException()); // assert Assert.IsNull(exception); }
UnwrapHttpUnhandledException_WithHttpUnhandledExceptionContainingInnerException_ReturnsInnerException() { // arrange var innerException = new Exception(); // act Exception exception = SubtextApplication.UnwrapHttpUnhandledException(new HttpUnhandledException("whatever", innerException)); // assert Assert.AreEqual(innerException, exception); }