public void GetandSetEndTimeTest() { MeetingNode meeting0 = new MeetingNode(mTitle, mID, sTime, "0001/01/01 00:00:00", PID, Attendents); MeetingNode meeting = new MeetingNode(mTitle, mID, sTime, eTime, PID, Attendents); //test empty String actualsTime0 = meeting0.GetEndTimeS(); Assert.AreEqual("", actualsTime0, "Actual meeting end time does not equal to empty, Actual:" + actualsTime0); //test get String actualsTime1 = meeting.GetEndTimeS(); Assert.AreEqual(eTime, actualsTime1, "Expected: " + eTime + "Actual: " + actualsTime1); //test set meeting.SetEndTime("2017/04/02 18:00:30"); String actualsTime2 = meeting.GetEndTimeS(); Assert.AreEqual("2017/04/02 18:00:30", actualsTime2, "Actual meeting end time does not equal to 2017/04/02 18:00:30"); }