Esempio n. 1
0
 private Constraint LexesAndFiltersAs(params string[] expected)
 {
     return new LexesAsConstraint(expected, delegate(IEnumerable<Token> tokens)
     {
         TokenFilter filter = new TokenFilter(tokens, _defines, _fileLoader);
         return filter.Tokens;
     });
 }
Esempio n. 2
0
 public void ThrowOnUnrecognizedDirective()
 {
     Lexer lexer = new Lexer("{$FOO}", "");
     TokenFilter filter = new TokenFilter(lexer.Tokens, _defines, _fileLoader);
     new List<Token>(filter.Tokens);
 }