Exemple #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.");
     }
 }
Exemple #2
0
 public void CountTreeNodeStructs()
 {
     TreeNodeStructRoot.CountNodes();
 }