Exemplo n.º 1
0
        public void Tokenize_InputWithMultipleProperties_ReturnsValidToken()
        {
            string input = "$['abc', 'efg']";

            IReadOnlyList <Token> tokens = Tokenizer.Tokenize(input);

            Assert.Equal(1, tokens.Count);
            MultiplePropertiesToken mpt = tokens.First().CastToMultiplePropertiesToken();

            Assert.Equal(2, mpt.Properties.Length);
            Assert.Equal("abc", mpt.Properties[0]);
            Assert.Equal("efg", mpt.Properties[1]);
        }
Exemplo n.º 2
0
 internal PropertyAccessExpression(MultiplePropertiesToken token)
 {
     Properties = token.Properties.ToList();
 }