コード例 #1
0
        public void Equals_TableOperation_Works()
        {
            var sut = new UpdateOperation("test", "1234")
            {
                Item = testObject
            };
            var other = new UpdateOperation("test", "1234")
            {
                Item = testObject
            };
            var notother = new DeleteOperation("test", "1234");

            Assert.True(sut.Equals(other));
            Assert.False(sut.Equals(notother));
        }
コード例 #2
0
        public void Equals_Object_Works()
        {
            var sut = new UpdateOperation("test", "1234")
            {
                Item = testObject
            };
            var other = new UpdateOperation("test", "1234")
            {
                Item = testObject
            };
            var    notother     = new DeleteOperation("test", "1234");
            object notoperation = new();

            Assert.True(sut.Equals((object)other));
            Assert.False(sut.Equals((object)notother));
            Assert.False(sut.Equals(notoperation));
        }