public void Compare_and_set_does_not_update_the_value_when_original_value_is_incorrect(double newValue) { var atomicDouble = new AtomicDouble(); atomicDouble.CompareAndSet(newValue, 100); var value = atomicDouble.Get(); value.Should().Be(0); }
public void Compare_and_set_does_not_update_the_value_when_original_value_is_incorrect(double newValue) { var atomicDouble = new AtomicDouble(); atomicDouble.CompareAndSet(newValue, 100); var value = atomicDouble.Get(); value.Should().Be(0); }