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); }
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); }