public Token Peek() { return(_peekable.Peek()); }
public void should_correctly_peek_item(IPeekable <string> subject, string expected) { subject.Peek().Should().Be(expected); }
public void should_not_remove_value_on_peek(IPeekable <string> subject, string expected) { subject.Peek().Should().Be(expected); subject.Peek().Should().Be(expected); }
public void should_throw_when_peeking_empty(IPeekable <int> subject) { Action act = () => subject.Peek(); act.Should().Throw <InvalidOperationException>(); }