Пример #1
0
        public void IObjectEquatable1_true()
        {
            IObjectEquatable2 objectA = new ObjectEquatable();
            IObjectEquatable2 objectB = new ObjectEquatable();

            IEqualityComparer <IObjectEquatable2> equalityComparer = EqualityComparer <IObjectEquatable2> .Default;

            Assert.IsTrue(equalityComparer.Equals(objectA, objectB));
        }
Пример #2
0
        public void ObjectEquatable_false()
        {
            ObjectEquatable objectA = new ObjectEquatable();
            ObjectEquatable objectB = new ObjectEquatable();

            IEqualityComparer <ObjectEquatable> equalityComparer = EqualityComparer <ObjectEquatable> .Default;

            Assert.IsFalse(equalityComparer.Equals(objectA, objectB));
        }
Пример #3
0
        public void IObjectEquatable1_false()
        {
            IObjectEquatable1 objectA = new ObjectEquatable();
            IObjectEquatable1 objectB = new ObjectEquatable();

            IEqualityComparer <IObjectEquatable1> equalityComparer = EqualityComparer <IObjectEquatable1> .Default;

            Assert.IsFalse(equalityComparer.Equals(objectA, objectB));
        }