public void SetReadOnlyCollectionAdapter_Equals_WhenEqual_Succeeds()
        {
            SetReadOnlyCollectionAdapter <int> adapter = new SetReadOnlyCollectionAdapter <int>(Array.Empty <int>());

            Assert.IsTrue(adapter.Equals(adapter));
            Assert.IsTrue(adapter.Equals((object)adapter));
        }
        public void SetReadOnlyCollectionAdapter_Equals_WhenUnderlyingCollectionEquals_Succeeds()
        {
            IReadOnlyCollection <int>          collection = new List <int>();
            SetReadOnlyCollectionAdapter <int> adapter    = new SetReadOnlyCollectionAdapter <int>(collection);

            Assert.IsTrue(adapter.Equals(collection));
            Assert.IsTrue(adapter.Equals((object)collection));
        }
        public void SetReadOnlyCollectionAdapter_Equals_WhenNotEqual_Succeeds()
        {
            SetReadOnlyCollectionAdapter <int> left  = new SetReadOnlyCollectionAdapter <int>(Array.Empty <int>());
            SetReadOnlyCollectionAdapter <int> right = new SetReadOnlyCollectionAdapter <int>(Array.Empty <int>());

            Assert.IsFalse(left.Equals(right));
            Assert.IsFalse(right.Equals(left));
            Assert.IsFalse(((object)left).Equals(right));
            Assert.IsFalse(left.Equals((object)right));
        }