Beispiel #1
0
        public void Unwrap_CustomDataOk()
        {
            Exception ex = new CustomException(55);
            var copy = Subject.Unwrap(Subject.Wrap(ex));

            Assert.Equal(55, (copy as CustomException).CustomData);
        }
Beispiel #2
0
 private Exception Exception(CustomException e)
 {
     try
     {
         throw e;
     }
     catch (Exception ex)
     {
         return ex;
     }
 }