public void CountAfterRemove() { var birch = new Tree<int>(new int[] { 10, 8, 7, 15, 9 }); birch.Remove(7); var result = birch.Count; Assert.AreEqual(4, result); }
public void RemoveNon_existentNode() { var birch = new Tree<int>(new int[] { 10, 17, 23 }); birch.Remove(33); }
public void RemoveNodeWithoutChildren() { var birch = new Tree<int>(new int[] { 10, 8, 7, 15, 9 }); birch.Remove(7); }
public void RemoveNodeInTheThickOfThings() { var birch = new Tree<int>(new int[] { 30, 40, 20, 25, 26, 10, 11, 3 }); birch.Remove(20); }
public void RemoveHeadNode() { var birch = new Tree<int>(new int[] { 10,17,23 }); birch.Remove(10); }