public void Test_Calc_Result() { try { ExamHelper.CalculateResult(); } catch (FormatException e) { Console.WriteLine("\nError in parameter types."); Console.WriteLine("\nException type:\t" + e.Message + "\n\n\n"); } }
public void Test_Number_Check() { try { ExamHelper.NumberCheck(); } catch (ArithmeticException e) { Console.WriteLine("\nArithmeticException thrown."); Console.WriteLine("\nException type:\t" + e.Message + "\n\n\n"); } }
public void Test_Weekly_Wages() { try { ExamHelper.WeeklyWages(); } catch (IndexOutOfRangeException e) { Console.WriteLine("\n\nError in loop termination condition."); Console.WriteLine("\nException type:\t" + e.Message + "\n\n\n"); } }