コード例 #1
0
        public void EmptyQueueTest()
        {
            var stack = new M10.Generics_and_Collections.Stack <int>();

            stack.Push(1);
            stack.Push(2);
            stack.Push(3);
            stack.Pop();
            stack.Pop();
            stack.Pop();
            CollectionAssert.AreEqual(new int[0], stack.ToArray());
        }
コード例 #2
0
        public void TestException()
        {
            var stack = new M10.Generics_and_Collections.Stack <int>();

            stack.Pop();
        }