public void MyQueue_Version2_02() { var solution = new Solution0232.MyQueue_Version2(); solution.Push(1); solution.Push(2); solution.Pop().Should().Be(1); solution.Push(3); solution.Push(4); solution.Pop().Should().Be(2); solution.Pop().Should().Be(3); solution.Pop().Should().Be(4); solution.Empty().Should().BeTrue(); }
public void MyQueue_Version2() { var solution = new Solution0232.MyQueue_Version2(); solution.Push(1); solution.Push(2); solution.Peek().Should().Be(1); solution.Pop().Should().Be(1); solution.Empty().Should().BeFalse(); }