public void DequeueTest() { Queue myQ = new Queue(); myQ.Enqueue(100, 1); myQ.Enqueue(200, 2); Assert.AreEqual(200, myQ.Dequeue()); }
public void AnotherDequeueTest() { Queue myQ = new Queue(); myQ.Enqueue(100, 1); myQ.Enqueue(200, -1); Assert.AreEqual(100, myQ.Dequeue()); }
public void EnqueueUpBorderValueTest() { Queue myQ = new Queue(); myQ.Enqueue(int.MaxValue, 1); }
public void EnqueueUpBorderPriorityTest() { Queue myQ = new Queue(); myQ.Enqueue(100, int.MaxValue); }
public void EnqueueSimpleTest() { Queue myQ = new Queue(); myQ.Enqueue(100, 1); }
public void EnqueueElementWithLowerPriorityTest() { Queue myQ = new Queue(); myQ.Enqueue(100, 1); myQ.Enqueue(200, -1); }
public void EnqueueDownBorderValueTest() { Queue myQ = new Queue(); myQ.Enqueue(int.MinValue, 1); }
public void EnqueueDownBorderPriorityTest() { Queue myQ = new Queue(); myQ.Enqueue(100, int.MinValue); }
public void SaveOrderOfElementsWithEqualPrioritiesTest2() { Queue myQ = new Queue(); myQ.Enqueue(1, 9); myQ.Enqueue(2, 9); myQ.Enqueue(3, 9); Assert.AreEqual(1, myQ.Dequeue()); Assert.AreEqual(2, myQ.Dequeue()); Assert.AreEqual(3, myQ.Dequeue()); }
public void LastTest() { Queue myQ = new Queue(); myQ.Enqueue(3, 1); myQ.Enqueue(2, 2); myQ.Enqueue(1, 3); Assert.AreEqual(1, myQ.Dequeue()); Assert.AreEqual(2, myQ.Dequeue()); Assert.AreEqual(3, myQ.Dequeue()); }