コード例 #1
0
        public void Polling_metrics_resets_monitor()
        {
            var counter = new PeakCounter(MonitorConfig.Build("Test"));

            _monitorRegistry.GetRegisteredMonitors().Returns(new[] { counter });
            counter.Increment();

            Thread.Sleep(1100);

            counter.GetValue().Should().Be(0);
        }
コード例 #2
0
 public PeakCounterTest()
 {
     counter = new PeakCounter(MonitorConfig.Build("Test"));
 }