public void Stack_Peek_OnEmptyStack_ThrowException() { Stack stack = new Stack(); stack.Peek(); }
public void Stack_PushPopPeek_EmptyStack_ReturnLastString() { Stack stack = new Stack(); stack.Push("Testing1"); stack.Push("Testing2"); stack.Push("Testing3"); stack.Pop(); string expected = "Testing2"; string actual = stack.Peek(); Assert.AreEqual(expected, actual); }