Esempio n. 1
0
        public void Collapse_DoesntCollapse([CombinatorialRange(1, 3)] int kind)
        {
            var            sut          = new DeleteOperation("test", "1234");
            TableOperation newOperation = kind switch
            {
                1 => new DeleteOperation("test", "1234"),
                2 => new InsertOperation("test", "1234"),
                3 => new UpdateOperation("test", "1234"),
                _ => throw new NotImplementedException()
            };

            sut.CollapseOperation(newOperation);
            Assert.False(sut.IsCancelled);
            Assert.Equal(1, sut.Version);
        }