public void MoveTest() { Treap <int> treap = new Treap <int>(); treap.Insert(0, 1); treap.Insert(1, 2); treap.Insert(2, 3); treap.Insert(3, 4); treap.Insert(4, 5); treap.Move(1, 3); Assert.AreEqual(treap[1], 3); Assert.AreEqual(treap[2], 4); Assert.AreEqual(treap[3], 2); }