Beispiel #1
0
        public void Get_and_reset_gets_the_maximum_value()
        {
            const long expected = 100L;
            var        gauge    = new MinGauge(MonitorConfig.Build("Test"));

            gauge.Set(expected);

            gauge.GetValuesAndReset().First().Value.Should().Be(expected);
        }
Beispiel #2
0
        public void Get_and_reset_sets_the_value_to_zero()
        {
            var gauge = new MinGauge(MonitorConfig.Build("Test"));

            gauge.Set(100L);

            gauge.GetValuesAndReset().ToList();

            gauge.GetValues().First().Value.Should().Be(0L);
        }