public void CountTreesTheory(int TestNumber) { Assert.Equal(14, BinaryTree <Int32> .CountTrees(TestNumber)); }
/// <summary> /// SameTree Compares the receiver to another tree to /// see if they are structurally identical. /// </summary> public bool SameTree(BinaryTree <T> other) { return(SameTree(root, other.root)); }
/// <summary> /// InitTree method sets up _bTree with simplest test case, using elements 1, 2, 3. /// This method is reused to initialize the _bTree variable again for each test. /// </summary> private void InitTree() { _bTree = new BinaryTree <Int32>(); _bTree.Build123c(_varOne, _varTwo, _varThree); }