コード例 #1
0
        public void TestAddWorkToDisposedWorker()
        {
            WaitAndContinueWorker work = new WaitAndContinueWorker();

            work.Complete(false, 100);
            work.Dispose();

            SampleWork item = new SampleWork();

            work.AddWork(item);
        }
コード例 #2
0
        public void TestAddWorkListToDisposedWorker()
        {
            WaitAndContinueWorker work = new WaitAndContinueWorker();

            work.Complete(false, 100);
            work.Dispose();

            WaitAndContinueList list = new WaitAndContinueList();

            list.AddWork(new SampleWork());

            work.AddWork(list);
        }