public void ShouldReleaseWaitingThreads() { Thread thread = new Thread(new ThreadStart(ThreadMethod)); thread.IsBackground = true; thread.Start(); MemoryQueue<MyTestObject> queue = new MemoryQueue<MyTestObject>(); queue.ReleaseWaitingThreads(); _resetEvent.WaitOne(); }