Exemple #1
0
        public void SetUpContext()
        {
            var tree = new PathTree();

            tree.Put(new[] { "foo", "bar", "1" }, "item 1");
            tree.Put(new[] { "foo", "bar", "baz", "2" }, "item 2");
            tree.Put(new[] { "foo", "3" }, "item 3");
            tree.Put(new[] { "4" }, "item 4");

            var result = tree.Transform(BuildBranch, BuildLeaf);

            ResultHash = ((KeyValuePair <string, object>)result).Value as Hashtable;
        }
Exemple #2
0
 public void SetUpContext()
 {
     PathTree = new PathTree();
     PathTree.Put(new[] { "foo", "bar" }, "foo/bar");
 }
        public void SetUpContext()
        {
            var tree = new PathTree();
            tree.Put(new[] { "foo", "bar", "1" }, "item 1");
            tree.Put(new[] { "foo", "bar", "baz", "2" }, "item 2");
            tree.Put(new[] { "foo", "3" }, "item 3");
            tree.Put(new[] { "4" }, "item 4");

            var result = tree.Transform(BuildBranch, BuildLeaf);
            ResultHash = ((KeyValuePair<string, object>)result).Value as Hashtable;
        }
Exemple #4
0
 public void SetUpContext()
 {
     PathTree = new PathTree();
     PathTree.Put(new[] { "foo", "bar" }, "foo/bar");
 }