Example #1
0
        public void TestReestimate()
        {
            var taskContainer = new TaskContainer(CancellationToken.None, null, 5);

            Assert.AreEqual(5, taskContainer.Estimation);
            var task1 = new TestTask();

            task1.UpdateEstimation();
            var task2 = new TestTask();

            taskContainer.AddTask(task1);
            Assert.AreEqual(5, taskContainer.Estimation);
            taskContainer.AddTask(task2);
            Assert.AreEqual(5, taskContainer.Estimation);
            taskContainer.Reestimate();
            Assert.AreEqual(4, taskContainer.Estimation);
        }