public void verify_ResetCache_clears_all_buckets()
        {
            ThreadProfilingService service = new ThreadProfilingService(null, null);
            ThreadProfilingBucket  bucket  = new ThreadProfilingBucket(service);
            var fids = GenerateStackSnapshot(10, 200, 50);

            bucket.UpdateTree(fids);

            service.ResetCache();
            Assert.AreEqual(0, service.GetTotalBucketNodeCount());
        }
        public void verify_ResetCache_clears_pruning_list()
        {
            IThreadProfilingProcessing service = new ThreadProfilingService(null, null);
            uint expectedCount = 5;

            for (uint i = 0; i < expectedCount; i++)
            {
                ProfileNode node = new ProfileNode(new UIntPtr(i), 1, 2);
                service.AddNodeToPruningList(node);
            }

            service.ResetCache();
            Assert.AreEqual(0, service.PruningList.Count);
        }