Exemple #1
0
        public void ToJson_And_FromJson_Exports_And_Imports_Tree()
        {
            var tree = new RTree <int>(4);

            tree.Load(_data);

            string json         = tree.ToJson();
            var    treeFromJson = new RTree <int>(4);

            treeFromJson.FromJson(json);

            CompareNodes(tree.All().ToArray(), treeFromJson.All().ToArray());
        }