public void Works() { var q = new FixedSizeQueue<int>(2); q.Enqueue(1); Assert.AreEqual("(1)", q.Print()); q.Enqueue(2); Assert.AreEqual("(1,2)", q.Print()); q.Enqueue(3); Assert.AreEqual("(2,3)", q.Print()); }
public void Works() { var q = new FixedSizeQueue<int>(2); q.Enqueue(1); Assert.AreEqual("(1)", q.Print()); q.Enqueue(2); Assert.AreEqual("(1,2)", q.Print()); q.Enqueue(3); Assert.AreEqual("(2,3)", q.Print()); }