public void Test_add() { Queue = new MyPriorityQueue <int>(); for (int i = RandArr.Length - 1; i >= 0; i--) { Queue.Add(RandArr[i]); } for (int i = 0; i < RandArr.Length; i++) { Queue.Add(RandArr[i]); } Assert.True(Queue.IsMinHeap(0)); Assert.False(Queue.IsEmpty()); Assert.Equal(2 * RandArr.Length, Queue.HeapSize); }