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