예제 #1
0
        public void AddAtPath()
        {
            // add new item to the local state
            State.AddAtPath("/test", CreateMetadata("/test"));

            // this should yield single pending change
            Assert.AreEqual(1, State.ChangeList.Count);

            // the local state should have one item
            Assert.AreEqual(1, State.Current.Count);
        }
예제 #2
0
        public void AddAtPath()
        {
            // adding a new item at the path must generate update
            State.AddAtPath(TestPath, CreateMetadata(TestPath));

            // this should yield single pending change
            Assert.AreEqual(1, State.ChangeList.Count);

            // the local state should have one item
            Assert.AreEqual(1, State.Current.Count);
        }