public void ShouldNotHaveNextWhenOnlyOneToken() { var tokens = new List <Token> { new Token("1", TokenType.Decimal) }; var navigator = new TokenNavigator(tokens); Assert.IsFalse(navigator.HasNext()); }
public void ShouldHaveNextWhenMoreTokens() { var tokens = new List <Token> { new Token("1", TokenType.Decimal), new Token("2", TokenType.Decimal) }; var navigator = new TokenNavigator(tokens); Assert.IsTrue(navigator.HasNext()); }