Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
        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));
        }