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