public void TokenizeExpression_ReturnsListOfTokens(string input, string[] tokens, TokenType[] tokensType) { var result = new RdlTokenizer(input); Assert.AreEqual(tokens, result.Tokens.Select(x => x.Value)); Assert.AreEqual(tokensType, result.Tokens.Select(x => x.Type)); }
public void ShuntingStack_ReturnsListOfTokens(string input, string[] tokens, bool includeStopper) { var result = new RdlTokenizer(input); Assert.AreEqual(tokens, result.ShuntingYard(includeStopper).Select(x => x.Value)); }