Ejemplo n.º 1
0
 /// <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);
 }
Ejemplo n.º 2
0
 /// <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);
 }
Ejemplo n.º 3
0
 public void TokenizerEOFTest()
 {
     var tokenizer = new ConditionTokenizer(new SimpleStringReader(string.Empty));
     Assert.Throws<ConditionParseException>(() => tokenizer.GetNextToken());
 }
Ejemplo n.º 4
0
 /// <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);
 }
Ejemplo n.º 5
0
 public void TokenizerEOFTest()
 {
     var tokenizer = new ConditionTokenizer(new SimpleStringReader(string.Empty));
     tokenizer.GetNextToken();
 }
Ejemplo n.º 6
0
 /// <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);
 }
Ejemplo n.º 7
0
 public void TokenizerEOFTest()
 {
     var tokenizer = new ConditionTokenizer();
     tokenizer.InitTokenizer(string.Empty);
     tokenizer.GetNextToken();
 }