public void ClosedQueue()
{
BoundedBlockingQueue<int> q = new BoundedBlockingQueue<int>(10);
q.Send(1);
q.CloseEntrance();
q.Receive();
try
{
q.Receive();
Assert.Fail("Expected exception");
}
catch (BoundedBlockingQueue.ClosedQueueException)
{
// noop
}
}