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

            base.TestPushPop(stack);
            Assert.IsTrue(stack.IsEmpty, @"Stack must be empty!");
        }
Ejemplo n.º 2
0
 public void Dispose()
 {
     _stack.Dispose();
     _stack = null;
     if (MonitorStack.Current == MonitorSetting.Disabled)
     {
         ModelCounter.Instance.Stop();
     }
 }
Ejemplo n.º 3
0
 public Monitor()
 {
     _stack = new MonitorStack();
     ModelCounter.Instance.Start();
 }
Ejemplo n.º 4
0
        public void MonitorStackPushW2Threads()
        {
            StackBase <string> stack = new MonitorStack <string>();

            base.TestPush(stack, 2);
        }
Ejemplo n.º 5
0
        public void MonitorStackPushPopW4Threads()
        {
            StackBase <string> stack = new MonitorStack <string>();

            base.TestPushPop(stack, 4);
        }
Ejemplo n.º 6
0
        public void TestPush()
        {
            StackBase <string> stack = new MonitorStack <string>();

            base.TestPush(stack);
        }