public void testFull()
 {
     String path = "I:\\GitHub\\Attendance\\AttendanceTest\\bin\\Debug\\testdata.txt";
     var monthRecord = new MonthRecord();
     var records = AttendanceRecord.LoadFile(path);
     foreach(var record in records)
     {
         monthRecord.Add(record);
     }
     Assert.AreEqual(2012, monthRecord.Year);
     Assert.AreEqual(1, monthRecord.Month);
     Assert.AreEqual(22, monthRecord.Workdays);
     Assert.AreEqual(0, monthRecord.LateRecords.Count);
     Assert.AreEqual(0, monthRecord.EarlyLeaveRecords.Count);
     Assert.AreEqual(0, monthRecord.AbsenteeismRecords.Count);
     Assert.AreEqual(0, monthRecord.OvertimeRecords.Count);
 }
 public void testRecordOfMonth()
 {
     String path = "";
     var monthRecord = new MonthRecord();
     var records = AttendanceRecord.LoadFile(path);
     foreach(var record in records)
     {
         monthRecord.Add(record);
     }
     Assert.AreEqual(2, monthRecord.LateRecords.Count);
     Assert.AreEqual(2, monthRecord.EarlyLeaveRecords.Count);
     Assert.AreEqual(2, monthRecord.AbsenteeismRecords.Count);
     Assert.AreEqual(2, monthRecord.OvertimeRecords.Count);
 }