public void IsEmpty()
 {
     ListStack myList = new ListStack();
     myList.Push(123);
     myList.Pop();
     Assert.AreEqual(true, myList.IsEmpty());
     Assert.AreEqual(true, myList.IsEmpty());
 }
 public void LastTest()
 {
     ListStack myList = new ListStack();
     myList.Push(0);
     myList.Push(1);
     Assert.AreEqual(1, myList.Pop());
     myList.Push(2);
     myList.Push(3);
     myList.Push(2);
     Assert.AreEqual(2, myList.Pop());
     Assert.AreEqual(3, myList.Pop());
     Assert.AreEqual(2, myList.Pop());
     Assert.AreEqual(0, myList.Pop());
     Assert.AreEqual(true, myList.IsEmpty());
 }
 public void IsNotEmpty()
 {
     ListStack myList = new ListStack();
     myList.Push(123);
     Assert.AreEqual(false, myList.IsEmpty());
 }