示例#1
0
        public override ISimpleTask Clone()
        {
            var clone = new CountTask(Type);

            clone.Copy(this);
            return(clone);
        }
示例#2
0
        public void WaitSingleTask()
        {
            var task = new CountTask();

            taskManager.Schedule(task);
            task.Wait();
            Assert.AreEqual(1000, task.Count);
        }