コード例 #1
0
        public virtual void TestStop()
        {
            BlockingQueue queue = new BlockingQueue();

            string[] data = new string[] { "a", "b", "c", "d" };
            queue.Add(data[0]);
            Assert.AreSame(data[0], queue.Next());
            BlockingQueueTestCase.StopThread notifyThread = new BlockingQueueTestCase.StopThread
                                                                (queue);
            notifyThread.Start();
            Assert.Expect(typeof(BlockingQueueStoppedException), new _ICodeBlock_110(queue));
        }
コード例 #2
0
		public virtual void TestStop()
		{
			BlockingQueue queue = new BlockingQueue();
			string[] data = new string[] { "a", "b", "c", "d" };
			queue.Add(data[0]);
			Assert.AreSame(data[0], queue.Next());
			BlockingQueueTestCase.StopThread notifyThread = new BlockingQueueTestCase.StopThread
				(queue);
			notifyThread.Start();
			Assert.Expect(typeof(BlockingQueueStoppedException), new _ICodeBlock_110(queue));
		}