Exemple #1
0
        public void Test_Contains()
        {
            MyDeque <int> deq = new MyDeque <int>();

            deq.EnqueueFirst(1);
            deq.EnqueueFirst(2);
            deq.EnqueueFirst(3);
            deq.EnqueueFirst(4);
            Assert.AreEqual(deq.Contains(2), true);
        }