private static void TestSort(int[] range, PriorityQueue<int> queue)
 {
     Array.Sort(range);
     for (int i = range.Length - 1; i >= 0; i--)
     {
         var max = queue.TakeTopItem();
         Assert.AreEqual(range[i], max);
     }
     Assert.AreEqual(queue.Size, 0);
 }