示例#1
0
文件: UnitTest1.cs 项目: lzcd/Slappy
        public void CanSetMergeAndGetValue()
        {
            dynamic bobs = new Node();
            bobs.Recipe.Eggs.Count = 5;
            bobs.Commit();

            dynamic alices = bobs.Clone();
            alices.Recipe.Butter.Amount = 4;
            alices.Recipe.Eggs.Count = 3;
            alices.Commit();

            bobs.Recipe.Salt.Amount = 7;
            bobs.Commit();

            bobs.Pull(alices);
        }