Exemple #1
0
        public void NotFoundExceptionExtendedConstructorPassesMessageIntoBaseClassOfException()
        {
            var notFoundException = new NotFoundException("Not found", new Exception("Inner Exception"));
            var result            = notFoundException.GetBaseException();

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

            Assert.AreEqual("Not found", result.Message);
        }