Exemplo n.º 1
0
        public void TestPrune()
        {
            GpuState state = CreateGpuState();

            Assert.AreEqual(10, state.Samples.Count);

            // Since this test can run fast, need to do one second less.
            state.PruneSamplesOlderThan(TimeSpan.FromSeconds(3599));

            Assert.AreEqual(8, state.Samples.Count);
        }