public void WindowsPerformanceFacadeTest_VerifyDecrementSimple64()
        {
            int   counterId   = WindowsPerformanceFacade.GetPerformanceCounterId(CounterTestUtilities.TestCategoryName, null, CounterTestUtilities.TestCounterNumberOfItems64Name);
            float initalValue = WindowsPerformanceFacade.NextValue(counterId);

            WindowsPerformanceFacade.IncrementBy(counterId, 7);
            WindowsPerformanceFacade.Decrement(counterId);
            float finalValue = WindowsPerformanceFacade.NextValue(counterId);

            Assert.AreEqual(initalValue + 6, finalValue);
        }
        public void WindowsPerformanceFacadeTest_VerifyDecrementAverageTimer32()
        {
            int counterId = WindowsPerformanceFacade.GetPerformanceCounterId(CounterTestUtilities.TestCategoryName, null, CounterTestUtilities.TestAverageTimer32Name);

            WindowsPerformanceFacade.Increment(counterId);
            WindowsPerformanceFacade.Increment(counterId);
            WindowsPerformanceFacade.Decrement(counterId);
            float finalValue = WindowsPerformanceFacade.NextValue(counterId);
            //// ((N1 - N0) / F) / (B1 - B0)
            //// how fast is our clock
            float freq = Stopwatch.Frequency;
            //// ((N1 - N0) / F)
            float numerator   = (1 - 2) / freq;
            float denominator = 3 - 2;

            Assert.AreEqual(numerator / denominator, finalValue, .002, "Freq: " + freq);
            //// the final value is actually 0 here and our calculatd value is very small, almost -0
        }