public void PopGoodTest() { Stack stack = new Stack(); stack.Push(10); stack.Push(9); stack.Pop(); Assert.IsTrue(stack.Top() == 10); }
public void WriteTest() { Stack stack = new Stack(); stack.Push(10); stack.Push(0); stack.Push(100); string test = "100 0 10 "; Assert.IsTrue(stack.Write() == test); }
public void ClearTest() { Stack stack = new Stack(); stack.Push(10); stack.Clear(); Assert.IsTrue(stack.Size() == 0); }
public void PushTest() { Stack stack = new Stack(); stack.Push(1); Assert.IsTrue(stack.Size() == 1); }