public void Multiple_Elements_Dequeued_In_Correct_Order() { var queue = new SingleOrQueue <int>(); queue.Enqueue(1); queue.Enqueue(2); queue.Enqueue(3); Assert.Equal(1, queue.Dequeue()); Assert.Equal(2, queue.Dequeue()); Assert.Equal(3, queue.Dequeue()); }
public void Enqueue_Adds_Element() { var queue = new SingleOrQueue <int>(); queue.Enqueue(1); Assert.False(queue.Empty); Assert.Equal(1, queue.Dequeue()); }