예제 #1
0
        public void DeltaObjectWithListChange_ProcessWithModel_ListChanged()
        {
            Model.SetList(new ModelDelta(), "name", "a", "b");

            var token = new ModelDelta();

            token.ChangeList("name", new[] { "a" }, new[] { "a", "b" });
            token.Revert(Model);

            Model.TryGetList("name", out var list);
            Assert.Equal(new[] { "a" }, list);
        }