Beispiel #1
0
 public void InternalExceptionTest(bool throwException)
 {
     try
     {
         try
         {
             if (throwException)
             {
                 throw new GenException <T>();
             }
             if (throwException)
             {
                 Test_nested_try_catch05.Eval(false);
             }
         }
         catch (Exception E)
         {
             Test_nested_try_catch05.Eval(E is GenException <T>);
             throw;
         }
     }
     finally
     {
         hitFinally = true;
     }
 }
Beispiel #2
0
 public void ExceptionTest(bool throwException)
 {
     try
     {
         hitFinally = false;
         InternalExceptionTest(throwException);
         Test_nested_try_catch05.Eval(!throwException);
     }
     catch
     {
         Test_nested_try_catch05.Eval(throwException);
     }
     Test_nested_try_catch05.Eval(hitFinally);
 }