public void TestForFindMaxAndMin1() { Tree2 tree = new Tree2(10); tree.AddChild(new Node(10)); tree.AddChild(new Node(9)); tree.AddChild(new Node(7)); tree.AddChild(new Node(1)); tree.AddChild(new Node(12)); tree.AddChild(new Node(11)); tree.AddChild(new Node(15)); Node max = tree.FindMaxFrom(tree.root); Node min = tree.FindMinFrom(tree.root); Assert.AreEqual(1, min.value); Assert.AreEqual(15, max.value); }