/// <summary> /// Initializes a new instance of the <see cref="ConditionParser"/> class. /// </summary> /// <param name="stringReader">The string reader.</param> /// <param name="configurationItemFactory">Instance of <see cref="ConfigurationItemFactory"/> used to resolve references to condition methods and layout renderers.</param> private ConditionParser(SimpleStringReader stringReader, ConfigurationItemFactory configurationItemFactory) { this.configurationItemFactory = configurationItemFactory; this.tokenizer = new ConditionTokenizer(stringReader); }
/// <summary> /// Initializes a new instance of the <see cref="ConditionParser"/> class. /// </summary> /// <param name="stringReader">The string reader.</param> /// <param name="configurationItemFactory">Instance of <see cref="ConfigurationItemFactory"/> used to resolve references to condition methods and layout renderers.</param> private ConditionParser(SimpleStringReader stringReader, ConfigurationItemFactory configurationItemFactory) { _configurationItemFactory = configurationItemFactory; _tokenizer = new ConditionTokenizer(stringReader); }
public void TokenizerEOFTest() { var tokenizer = new ConditionTokenizer(new SimpleStringReader(string.Empty)); Assert.Throws<ConditionParseException>(() => tokenizer.GetNextToken()); }
/// <summary> /// Initializes a new instance of the <see cref="ConditionParser" /> class. /// </summary> /// <param name="expressionText">The expression text.</param> /// <param name="configurationItemFactory">Instance of <see cref="ConfigurationItemFactory"/> used to resolve references to condition methods and layout renderers.</param> private ConditionParser(string expressionText, ConfigurationItemFactory configurationItemFactory) { this.configurationItemFactory = configurationItemFactory; this.tokenizer = new ConditionTokenizer(expressionText ?? string.Empty); }
public void TokenizerEOFTest() { var tokenizer = new ConditionTokenizer(new SimpleStringReader(string.Empty)); tokenizer.GetNextToken(); }
public void TokenizerEOFTest() { var tokenizer = new ConditionTokenizer(); tokenizer.InitTokenizer(string.Empty); tokenizer.GetNextToken(); }