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

            Assert.Throws <InvalidOperationException>(() => sut.ValidateOperationCanCollapse(newOp));
        }
        public void ValidateCollapse_UpdateOperation_OK()
        {
            var sut   = new UpdateOperation("test", "1234");
            var newOp = new UpdateOperation("test", "1234");

            sut.ValidateOperationCanCollapse(newOp);
        }
        public void ValidateCollapse_MismatchedItemId_Throws()
        {
            var sut   = new UpdateOperation("test", "1234");
            var newOp = new UpdateOperation("test", "4321");

            Assert.Throws <ArgumentException>(() => sut.ValidateOperationCanCollapse(newOp));
        }