Example #1
0
 public void ClearTest()
 {
     Stack stack = new Stack();
     stack.Push(10);
     stack.Clear();
     Assert.IsTrue(stack.Size() == 0);
 }
Example #2
0
 public void SizeTest()
 {
     Stack stack = new Stack();
     Assert.IsTrue(stack.Size() == 0);
 }
Example #3
0
 public void PushTest()
 {
     Stack stack = new Stack();
     stack.Push(1);
     Assert.IsTrue(stack.Size() == 1);
 }