public void StackOverflowTest()
        {
            referenceCacheLock = new AsyncCriticalSection();
            unlockEvent        = new ManualResetEvent(false);
            doneEvent          = new ManualResetEvent(false);

            for (int i = 0; i < maxLoadProjectCalls; ++i)
            {
                Run(i);
            }

            Thread.Sleep(500);

            unlockEvent.Set();
            bool result = doneEvent.WaitOne(5000);

            if (!result)
            {
                Assert.Fail("Done event not fired.");
            }
        }