public static void ExecuteExercise(IExercise exercise)
 {
     try {
         exercise.Start();
         exercise.Execute();
     }
     catch {
         exercise.MarkNegativePoints();
         exercise.End();
     }
     exercise.End();
 }
Beispiel #2
0
 public static void ExecuteExercise(IExercise exercise)
 {
     try
     {
         exercise.Start();
         exercise.Execute();
     }
     catch (Exception ex)
     {
         exercise.MarkNegativePoints();
     }
     finally {
         exercise.End();
     }
 }