public void Test_getActivity() { IActivity a = new Mocked_Activity(); IScheduledActivity o = new ScheduledActivity(a, DT); Assert.AreSame(a, o.getActivity()); }
public void Test_ScheduledActivityInstance() { IActivity a = new Mocked_Activity(); IScheduledActivity o = new ScheduledActivity(a, DT); Assert.AreNotSame(o, null); }
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); }
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); }
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); }