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; }
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; }
public void SetUpContext() { PathTree = new PathTree(); PathTree.Put(new[] { "foo", "bar" }, "foo/bar"); }