Пример #1
0
 /// <inheritdoc />
 public double GetValue(bool resetMetric = false)
 {
     return(resetMetric ? _gauge.GetAndReset() : _gauge.GetValue());
 }
Пример #2
0
 public void Can_get_and_reset()
 {
     _num.SetValue(32);
     _num.GetAndReset().Should().Be(32);
     _num.GetValue().Should().Be(0);
 }