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); }
public PeakCounterTest() { counter = new PeakCounter(MonitorConfig.Build("Test")); }