コード例 #1
0
        public void GetandSetStartTimeTest()
        {
            MeetingNode meeting0 = new MeetingNode(mTitle, mID, "0001/01/01 00:00:00", eTime, PID, Attendents);
            MeetingNode meeting  = new MeetingNode(mTitle, mID, sTime, eTime, PID, Attendents);

            //test empty
            String actualsTime0 = meeting0.GetStartTimeS();

            Assert.AreEqual("", actualsTime0, "Actual meeting start time does not equal to the minimized value");

            //test get
            String actualsTime1 = meeting.GetStartTimeS();

            Assert.AreEqual(sTime, actualsTime1, "Actual meeting start time does not equal to 2017/04/01 17:30:05");

            //test set
            meeting.SetStartTime("2017/04/02 12:30:00");
            String actualsTime2 = meeting.GetStartTimeS();

            Assert.AreEqual("2017/04/02 12:30:00", actualsTime2, "Actual meeting start time does not equal to 2017/04/02 12:30:00");
        }