public void when_reading_a_performance_counter_for_the_first_time_then_it_is_added_to_the_registry()
        {
            var mockPerformanceCounter = new Mock <IPerformanceCounter>();
            var registry = new PerformanceCounterRegistryTestHarness(_registryDictionary, (a, b, c) => mockPerformanceCounter.Object);

            registry.Read("category", "counter", "instance");

            Assert.That(_registryDictionary.Count, Is.EqualTo(1));
            mockPerformanceCounter.Verify(m => m.NextValue(), Times.Once);
        }
        public void when_reading_a_performance_counter_for_the_first_time_then_it_is_added_to_the_registry()
        {
            var mockPerformanceCounter = new Mock<IPerformanceCounter>();
            var registry = new PerformanceCounterRegistryTestHarness(_registryDictionary, (a, b, c) => mockPerformanceCounter.Object);

            registry.Read("category", "counter", "instance");

            Assert.That(_registryDictionary.Count, Is.EqualTo(1));
            mockPerformanceCounter.Verify(m => m.NextValue(), Times.Once);
        }