예제 #1
0
        public void Test_getActivity()
        {
            IActivity          a = new Mocked_Activity();
            IScheduledActivity o = new ScheduledActivity(a, DT);

            Assert.AreSame(a, o.getActivity());
        }
예제 #2
0
        public void Test_ScheduledActivityInstance()
        {
            IActivity          a = new Mocked_Activity();
            IScheduledActivity o = new ScheduledActivity(a, DT);

            Assert.AreNotSame(o, null);
        }
예제 #3
0
        public void Test_ToString()
        {
            IActivity          a        = new Mocked_Activity();
            IScheduledActivity o        = new ScheduledActivity(a, DT);
            string             actual   = o.ToString();
            string             expected = TIMETEXT + " : " + Mocked_Activity.TEXT;

            Assert.AreEqual(actual, expected);
        }
예제 #4
0
        public void Test_getEnd()
        {
            IActivity          a = new Mocked_Activity();
            IScheduledActivity o = new ScheduledActivity(a, DT);

            DateTime actual   = o.getEnd();
            DateTime expected = DT.Add(new TimeSpan(0, Mocked_Activity.DURATION, 0));

            Assert.AreEqual(expected, actual);
        }
예제 #5
0
        public void Test_getStart()
        {
            IActivity          a = new Mocked_Activity();
            IScheduledActivity o = new ScheduledActivity(a, DT);

            DateTime actual   = o.getStart();
            DateTime expected = DT;

            Assert.AreEqual(expected, actual);
        }