public void MyStack_Version1_03() { var solution = new Solution0225.MyStack_Version1(); solution.Push(1); solution.Pop().Should().Be(1); solution.Empty().Should().BeTrue(); }
public void MyStack_Version1_01() { var solution = new Solution0225.MyStack_Version1(); solution.Push(1); solution.Push(2); solution.Top().Should().Be(2); solution.Pop().Should().Be(2); solution.Empty().Should().BeFalse(); }