Ejemplo n.º 1
0
 public static void ExecuteExercise(IExercise exercise)
 {
     try {
         exercise.Start();
         exercise.Execute();
     }
     catch {
         exercise.MarkNegativePoints();
         exercise.End();
     }
     exercise.End();
 }
Ejemplo n.º 2
0
 public static void ExecuteExercise(IExercise exercise)
 {
     try
     {
         exercise.Start();
         exercise.Execute();
     }
     catch (Exception ex)
     {
         exercise.MarkNegativePoints();
     }
     finally {
         exercise.End();
     }
 }