Exemplo n.º 1
0
        public void TestPushPop()
        {
            StackBase <string> stack = new LockStack <string>();

            base.TestPushPop(stack);
            Assert.IsTrue(stack.IsEmpty, @"Stack must be empty!");
        }
Exemplo n.º 2
0
        public void LockStackPushPopW2Threads()
        {
            StackBase <string> stack = new LockStack <string>();

            base.TestPushPop(stack, 2);
        }
Exemplo n.º 3
0
        public void LockStackPushW4Threads()
        {
            StackBase <string> stack = new LockStack <string>();

            base.TestPush(stack, 4);
        }
Exemplo n.º 4
0
        public void TestPush()
        {
            StackBase <string> stack = new LockStack <string>();

            base.TestPush(stack);
        }