Example #1
0
        public virtual void tearDown()
        {
            RepositoryCache.clear();
            foreach (Core.Repository r in toClose)
            {
                r.Dispose();
            }
            toClose.Clear();

            // Since memory mapping is controlled by the GC we need to
            // tell it this is a good time to clean up and unlock
            // memory mapped files.
            //
            if (useMMAP)
            {
                System.GC.Collect();
            }

            recursiveDelete(testName() + " (TearDown)", trash, false, true);
        }