Beispiel #1
0
 public Token Peek()
 {
     return(_peekable.Peek());
 }
Beispiel #2
0
 public void should_correctly_peek_item(IPeekable <string> subject, string expected)
 {
     subject.Peek().Should().Be(expected);
 }
Beispiel #3
0
 public void should_not_remove_value_on_peek(IPeekable <string> subject, string expected)
 {
     subject.Peek().Should().Be(expected);
     subject.Peek().Should().Be(expected);
 }
Beispiel #4
0
        public void should_throw_when_peeking_empty(IPeekable <int> subject)
        {
            Action act = () => subject.Peek();

            act.Should().Throw <InvalidOperationException>();
        }