public void ClearTest()
 {
     MyStack<int> Stack = new MyArrayStack<int>();
     Stack.Push(1);
     Stack.Push(2);
     Stack.Clear();
     Assert.AreEqual(Stack.Count, 0);
     Assert.AreEqual((Stack as MyArrayStack<int>).Capacity, 10);
 }
        public void ClearTest()
        {
            MyStack <int> Stack = new MyArrayStack <int>();

            Stack.Push(1);
            Stack.Push(2);
            Stack.Clear();
            Assert.AreEqual(Stack.Count, 0);
            Assert.AreEqual((Stack as MyArrayStack <int>).Capacity, 10);
        }