Exemple #1
0
        public void Task_Exists()
        {
            var id  = Guid.NewGuid();
            var mre = new ManualResetEvent(false);

            TasksHost.Enqueue <MyTask>(id,
                                       completed: (dic) =>
            {
                mre.Set();
            });
            mre.WaitOne();
            var result = TasksHost.Exists(id);

            Check.That(result).IsTrue();
        }