public void CheckeReverseQueue() { CustomQueueWithArray<double> queue = new CustomQueueWithArray<double>(10); queue.EnQueue(3.14); queue.EnQueue(8.28); queue.EnQueue(1.1987); queue.EnQueue(5.39); queue.Reverse(); double element = queue.Dequeue(); Assert.AreEqual(5.39, element); }
public void CheckeReverseZeroLengthQueue() { CustomQueueWithArray<double> queue = new CustomQueueWithArray<double>(10); queue.Reverse(); Assert.AreEqual(0, queue.Length); }