Ejemplo n.º 1
0
        public void Capacity01()
        {
            var capacity = 4;
            var cq       = new CircularStack <int>(capacity);

            Assert.AreEqual(capacity, cq.Capacity());
            for (int i = 0; i < 6; i++)
            {
                cq.Push(i);
            }
            Assert.AreEqual(capacity, cq.Capacity());
        }