public void AtomicBoolean_Should_Implement_Reference_Equality()
        {
            var firstAtomic  = new AtomicBoolean(true);
            var secondAtomic = new AtomicBoolean(false);

            Assert.False(firstAtomic.Equals(secondAtomic));
            Assert.False(secondAtomic.Equals(firstAtomic));

            // self equality
            Assert.True(firstAtomic.Equals(firstAtomic));
            Assert.True(secondAtomic.Equals(secondAtomic));
        }
        public void AtomicBoolean_IEquatable_Of_Bool_Should_Compare()
        {
            IEquatable <bool> firstAtomic  = new AtomicBoolean(true);
            IEquatable <bool> secondAtomic = new AtomicBoolean(false);

            Assert.False(firstAtomic.Equals(false));
            Assert.False(secondAtomic.Equals(true));
        }