예제 #1
0
        public void op_Equals_objectSame()
        {
            var    obj   = new DataCollection();
            object other = obj;

            Assert.True(obj.Equals(other));
        }
예제 #2
0
        public void op_Equals_objectDiffer()
        {
            var obj = new DataCollection
            {
                {
                    "name", "value"
                }
            };

            var comparand = new DataCollection
            {
                {
                    "foo", "bar"
                }
            };

            Assert.False(obj.Equals(comparand));
        }
예제 #3
0
        public void op_Equals_object()
        {
            var obj = new DataCollection
            {
                {
                    "name", "value"
                }
            };

            var comparand = new DataCollection
            {
                {
                    "name", "value"
                }
            };

            Assert.True(obj.Equals(comparand));
        }