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

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

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

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

            base.TestPush(stack);
        }