public void VerifyTrimesterOrder_NullTrimesterList_NoException() { StudentRecord studRecord = new StudentRecord("ahmad", "12345", Gender.male, "*****@*****.**", "012-44444", "SE", 120); studRecord.trimesterPerformanceList = null; studRecord.VerifyTrimesterOrder(); }
public void VerifyTrimesterOrder_YearMonthAndTrimesterOutOfOrderInTrimesterList_Exception() { StudentRecord studRecord = new StudentRecord("ahmad", "12345", Gender.male, "*****@*****.**", "012-44444", "SE", 120); TrimesterPerformance tpf = new TrimesterPerformance(2014, TrimesterMonths.JAN, Trimesters.Y1T1); studRecord.AddTrimesterPerformance(tpf); tpf = new TrimesterPerformance(2016, TrimesterMonths.MAY, Trimesters.Y1T2); studRecord.AddTrimesterPerformance(tpf); tpf = new TrimesterPerformance(2014, TrimesterMonths.JAN, Trimesters.Y2T3); studRecord.AddTrimesterPerformance(tpf); studRecord.VerifyTrimesterOrder(); }
public void VerifyTrimesterOrder_CompleteTrimestersSequence_NoException() { StudentRecord studRecord = new StudentRecord("ahmad", "12345", Gender.male, "*****@*****.**", "012-44444", "SE", 120); TrimesterPerformance tpf = new TrimesterPerformance(2014, TrimesterMonths.JAN, Trimesters.Y1T1); studRecord.AddTrimesterPerformance(tpf); tpf = new TrimesterPerformance(2014, TrimesterMonths.MAY, Trimesters.Y1T2); studRecord.AddTrimesterPerformance(tpf); tpf = new TrimesterPerformance(2014, TrimesterMonths.OCT, Trimesters.Y1T3); studRecord.AddTrimesterPerformance(tpf); tpf = new TrimesterPerformance(2015, TrimesterMonths.JAN, Trimesters.Y2T1); studRecord.AddTrimesterPerformance(tpf); tpf = new TrimesterPerformance(2015, TrimesterMonths.MAY, Trimesters.Y2T2); studRecord.AddTrimesterPerformance(tpf); tpf = new TrimesterPerformance(2015, TrimesterMonths.OCT, Trimesters.Y2T3); studRecord.AddTrimesterPerformance(tpf); tpf = new TrimesterPerformance(2016, TrimesterMonths.JAN, Trimesters.Y3T1); studRecord.AddTrimesterPerformance(tpf); tpf = new TrimesterPerformance(2016, TrimesterMonths.MAY, Trimesters.Y3T2); studRecord.AddTrimesterPerformance(tpf); tpf = new TrimesterPerformance(2016, TrimesterMonths.OCT, Trimesters.Y3T3); studRecord.AddTrimesterPerformance(tpf); studRecord.VerifyTrimesterOrder(); }