public void TopExceptionTest() { ArrayStack myList = new ArrayStack(); myList.Top(); }
public void TopTest() { ArrayStack myList = new ArrayStack(); myList.Push(12); Assert.AreEqual(12, myList.Top()); }
public void TopAndPopTest() { ArrayStack myList = new ArrayStack(); myList.Push(123); Assert.AreEqual(123, myList.Top()); myList.Pop(); Assert.AreEqual(true, myList.IsEmpty()); }