Ejemplo n.º 1
0
        public void Test_getActivity()
        {
            IActivity          a = new Mocked_Activity();
            IScheduledActivity o = new ScheduledActivity(a, DT);

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

            Assert.AreNotSame(o, null);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }