コード例 #1
0
        public void ValidateCollapse_InsertOperation_Throws()
        {
            var sut   = new UpdateOperation("test", "1234");
            var newOp = new InsertOperation("test", "1234");

            Assert.Throws <InvalidOperationException>(() => sut.ValidateOperationCanCollapse(newOp));
        }
コード例 #2
0
        public void ValidateCollapse_UpdateOperation_OK()
        {
            var sut   = new UpdateOperation("test", "1234");
            var newOp = new UpdateOperation("test", "1234");

            sut.ValidateOperationCanCollapse(newOp);
        }
コード例 #3
0
        public void ValidateCollapse_MismatchedItemId_Throws()
        {
            var sut   = new UpdateOperation("test", "1234");
            var newOp = new UpdateOperation("test", "4321");

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