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));
        }
Exemplo n.º 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));
		}