コード例 #1
0
        public void GetandSetMeetingTitleTest()
        {
            MeetingNode meeting0 = new MeetingNode("", mID, sTime, eTime, PID, Attendents);
            MeetingNode meeting  = new MeetingNode(mTitle, mID, sTime, eTime, PID, Attendents);

            //test empty
            String actualmTitle0 = meeting0.GetMeetingTitle();

            Assert.AreEqual("", actualmTitle0, "Actual meeting title not equal to empty");

            //test get
            String actualmTitle1 = meeting.GetMeetingTitle();

            Assert.AreEqual(mTitle, actualmTitle1, "Actual meeting title not equal to mTitle");

            //test set string
            meeting.SetMeetingTitle("ECON 201");
            String actualmTitle2 = meeting.GetMeetingTitle();

            Assert.AreEqual("ECON 201", actualmTitle2, "Actual meeting title not equal to new mTitle");

            //test set int
            meeting.SetMeetingTitle(201);
            String actualmTitle3 = meeting.GetMeetingTitle();

            Assert.AreEqual("201", actualmTitle3, "Actual meeting title not equal to new mTitle 201");
        }