public void After_get_and_reset_the_value_is_still_gotten_from_func(int expectedValue) { var gauge = new BasicGauge <int>(MonitorConfig.Build("Test"), () => expectedValue); gauge.GetValueAndReset(); gauge.GetValueAndReset().Should().Be(expectedValue); }
public void Value_is_gotten_through_passed_in_func_when_using_get_and_reset(int expectedValue) { var gauge = new BasicGauge <int>(MonitorConfig.Build("Test"), () => expectedValue); gauge.GetValueAndReset().Should().Be(expectedValue); }