示例#1
0
        public void prune_total_miss()
        {
            var page2 = toPage(101, 200, 88);
            var page3 = toPage(201, 300, 77);
            var page4 = toPage(301, 400, 66);

            theAccumulator.Store(page2);
            theAccumulator.Store(page3);
            theAccumulator.Store(page4);

            theAccumulator.Prune(99);

            theAccumulator.AllPages().ShouldHaveTheSameElementsAs(page2, page3, page4);
        }