public void DataNavigationTest() { var f = new GenDataDef(); f.AddSubClass("", "Parent"); f.AddClassInstanceProperty(f.GetClassId("Parent"), "Name"); f.AddSubClass("Parent", "Class", "Definition"); var d = new GenData(f); CreateGenObject(d, d.Root, "Parent", "Minimal"); ((SubClassReference)d.Context[1].GenObject.SubClass[0]).Reference = "Minimal"; CreateGenObject(d, d.Root, "Parent", "Basic"); ((SubClassReference)d.Context[1].GenObject.SubClass[0]).Reference = "Basic"; CreateGenObject(d, d.Root, "Parent", "Definition"); ((SubClassReference)d.Context[1].GenObject.SubClass[0]).Reference = "Definition"; //d.Cache.Merge(); //var minimal = d.Cache["definition", "Minimal"]; //var basic = d.Cache["definition", "Basic"]; //var newDefinition = d.Cache["definition", "Definition"]; var d1 = d.DuplicateContext(); Navigate(d1, 0); Navigate(d1, 0); }