Beispiel #1
0
 public void TestMethodClearTree(int[] array, int[] treeArray)
 {
     Tree tree = new Tree();
     tree.Init(array);
     tree.Clear();
     CollectionAssert.AreEqual(treeArray, tree.ToArray());
 }
Beispiel #2
0
 public void TestMethodInitTree(int[] array, int[] treeArray)
 {
     Tree tree = new Tree();
     tree.Init(array);
     var arr = tree.ToArray();
     CollectionAssert.AreEqual(treeArray, arr);
 }
Beispiel #3
0
 public void TestMethodReverseTree(int[] array, int[] res)
 {
     Tree tree = new Tree();
     tree.Init(array);
     tree.ReverseTree();
     CollectionAssert.AreEqual(res, tree.ToArray());
 }