public void TestAtomicDouble() { var d = AtomicDouble.From(0.1); Assert.Equal(0.1, d.Value); Assert.True(d.CompareExchange(0.2, 0.1)); Assert.Equal(0.2, d.Value); Assert.True(d.Exchange(0.3)); Assert.Equal(0.3, d.Value); Assert.Equal(0.3, d); }