public void Dequeuing_returns_enqueued_item_in_fifo_order() { var queue = new StandardQueue <int>(); queue.Enqueue(3).Enqueue(2).Enqueue(1); Assert.That(queue.Dequeue(), Is.EqualTo(3)); Assert.That(queue.Dequeue(), Is.EqualTo(2)); Assert.That(queue.Dequeue(), Is.EqualTo(1)); }
public void Enqueuing_returns_queue() { var queue = new StandardQueue <int>(); Assert.That(queue.Enqueue(3), Is.EqualTo(queue)); }