public void WorkTimeTest() { var target = new TaskTime { WorkedFrom = DateTime.Parse("2011-07-01 12:00:00"), WorkedTo = DateTime.Parse("2011-07-02 11:45:00") }; double actual = target.WorkTime; Assert.AreEqual(23.75, actual, "Wrong WorkTime calculation!"); }
public virtual void AddHoursTask(TaskTime taskTime) { TaskTimes.Add(taskTime); }