public void NotFoundExceptionExtendedConstructorPassesMessageIntoBaseClassOfException() { var notFoundException = new NotFoundException("Not found", new Exception("Inner Exception")); var result = notFoundException.GetBaseException(); Assert.AreEqual("Inner Exception", result.GetBaseException().Message); }
public void NotFoundExceptionPassesMessageIntoBaseClassOfException() { var notFoundException = new NotFoundException("Not found"); var result = notFoundException.GetBaseException(); Assert.AreEqual("Not found", result.Message); }