private void CheckLimits(WindowCacheConfig cfg)
        {
            WindowCache cache = WindowCache.GetInstance();

            NUnit.Framework.Assert.IsTrue(cache.GetOpenFiles() <= cfg.GetPackedGitOpenFiles()
                                          );
            NUnit.Framework.Assert.IsTrue(cache.GetOpenBytes() <= cfg.GetPackedGitLimit());
            NUnit.Framework.Assert.IsTrue(0 < cache.GetOpenFiles());
            NUnit.Framework.Assert.IsTrue(0 < cache.GetOpenBytes());
        }
        public virtual void TestCache_Defaults()
        {
            WindowCacheConfig cfg = new WindowCacheConfig();

            WindowCache.Reconfigure(cfg);
            DoCacheTests();
            CheckLimits(cfg);
            WindowCache cache = WindowCache.GetInstance();

            NUnit.Framework.Assert.AreEqual(6, cache.GetOpenFiles());
            NUnit.Framework.Assert.AreEqual(17346, cache.GetOpenBytes());
        }