Exemplo n.º 1
0
        public void EnqueueTest()
        {
            var stack = new M10.Generics_and_Collections.Stack <int>();

            stack.Push(1);
            stack.Push(2);
            stack.Push(3);
            CollectionAssert.AreEqual(new int[] { 3, 2, 1 }, stack.ToArray());
        }
Exemplo n.º 2
0
        public void TestException()
        {
            var stack = new M10.Generics_and_Collections.Stack <int>();

            stack.Pop();
        }