public void Collapse_MismatchedItemId_Throws()
        {
            var sut   = new UpdateOperation("test", "1234");
            var newOp = new UpdateOperation("test", "4321");

            Assert.Throws <ArgumentException>(() => sut.CollapseOperation(newOp));
        }
        public void Collapse_UpdateOperation()
        {
            var sut   = new UpdateOperation("test", "1234");
            var newOp = new UpdateOperation("test", "1234");

            sut.CollapseOperation(newOp);

            Assert.False(sut.IsCancelled);
            Assert.True(sut.IsUpdated);
            Assert.True(newOp.IsCancelled);
        }