Ejemplo n.º 1
0
        public void SW200602()
        {
            C5.CircularQueue <int> list = new C5.CircularQueue <int>(8);
            for (int count = 0; count <= 7; count++)
            {
                list.Enqueue(count);
            }
            int end = list.Count;

            for (int index = 0; index < end; index++)
            {
                Assert.AreEqual(index, list[0]);
                list.Dequeue();
            }
        }
Ejemplo n.º 2
0
 public void SW200602()
 {
     C5.CircularQueue<int> list = new C5.CircularQueue<int>(8);
       for (int count = 0; count <= 7; count++)
       {
     list.Enqueue(count);
       }
       int end = list.Count;
       for (int index = 0; index < end; index++)
       {
     Assert.AreEqual(index, list[0]);
     list.Dequeue();
       }
 }