static void TestFunc(PriorityQueue.PQueue <TestThing> pq) { while (pq.Count > 5) { Console.Write(pq.Pop() + ", "); } Console.WriteLine(pq.Pop()); pq.Push(new TestThing("", 8)); pq.Push(new TestThing("", 2)); pq.Remove(new TestThing("a", 7)); pq.Push(new TestThing("", 6)); pq.Push(new TestThing("", 4)); while (pq.Count > 1) { Console.Write(pq.Pop() + ", "); } Console.WriteLine(pq.Pop()); Console.WriteLine(HR); }