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