Ejemplo n.º 1
0
        public void when_wrap_exception_works_as_expected()
        {
            Exception             innerException;
            DivideByZeroException upperExpection;

            innerException = new NotImplementedException("Booooom");
            upperExpection = innerException.wrap(ex => new DivideByZeroException("more booom!", ex));

            Assert.IsInstanceOfType(upperExpection, typeof(DivideByZeroException));
        }