예제 #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);
 }
예제 #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);
 }
예제 #3
0
 public void TokenizerEOFTest()
 {
     var tokenizer = new ConditionTokenizer(new SimpleStringReader(string.Empty));
     Assert.Throws<ConditionParseException>(() => tokenizer.GetNextToken());
 }
예제 #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);
 }
예제 #5
0
 public void TokenizerEOFTest()
 {
     var tokenizer = new ConditionTokenizer(new SimpleStringReader(string.Empty));
     tokenizer.GetNextToken();
 }
예제 #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);
 }
예제 #7
0
 public void TokenizerEOFTest()
 {
     var tokenizer = new ConditionTokenizer();
     tokenizer.InitTokenizer(string.Empty);
     tokenizer.GetNextToken();
 }