public void AtomicCompareExchangeMutatesValueIfComparandEqualsCurrentValue() { _volatile.AtomicCompareExchange(0, NewValue, InitialValue); Assert.AreEqual(NewValue, _volatile.ReadUnfenced(0)); }