public void Incrementing_the_value_by_the_specified_amount_increments_the_value_correctly(double originvalValue, double amount, double expectedValue) { var atomicDouble = new AtomicDouble(originvalValue); atomicDouble.Increment(amount); var value = atomicDouble.Get(); value.Should().BeApproximately(expectedValue, 0.1); }
public void Incrementing_the_value_increments_the_value(double originvalValue, double expectedValue) { var atomicDouble = new AtomicDouble(originvalValue); atomicDouble.Increment(); var value = atomicDouble.Get(); value.Should().Be(expectedValue); }
public void Increment() { _num.Increment(); }
public void Observe(double value) { _count.Increment(1); _sum.Increment(value); _quantileValues?.Insert(value); }
public void Can_be_incremented() { _num.Increment().Should().Be(1.0); _num.GetValue().Should().Be(1.0); }