private static void AddTokenInfo(string tokenRegex, PropertyPathTokenType propertyPathTokenType) { var regex = ConstructTokenRegex(tokenRegex); var tokenInfo = new PropertyPathTokenInfo(regex, propertyPathTokenType); TokenInfos.Add(tokenInfo); }
public void Tokenize_SingleToken_ReturnsExpectedToken(string path, PropertyPathTokenType expectedType) { var tokenizer = new PropertyPathTokenizer(); var token = tokenizer.Tokenize(path).Single(); Assert.AreEqual(expectedType, token.Type); }
public PropertyPathToken(PropertyPathTokenType type, string sequence, int position) : base(sequence, position) { Type = type; }
public PropertyPathTokenInfo(Regex regex, PropertyPathTokenType type) : base(regex) { this.type = type; }