예제 #1
0
 public TreeNodeBenchmark()
 {
     TreeNodeRoot       = TreeNode.CreateTree(TreeDepth);
     TreeNodeStructRoot = TreeNodeStruct.CreateTree(TreeDepth);
     if (TreeNodeRoot.CountNodes() != TreeNodeStructRoot.CountNodes())
     {
         throw new InvalidOperationException("Node count doesn't match.");
     }
 }
예제 #2
0
 public void CreateTreeNodeStructs()
 {
     TreeNodeStruct.CreateTree(TreeDepth);
 }