public void Convert_JavaScriptSyntaxFiles_WithoutErrors() { var ignoredFiles = new [] { "EnhancedRegularExpression.js", "MapSetAndWeakMapWeakSet.js", "Modules.js", "Outdated.js" }; TestUtility.CheckProject(Path.Combine(TestUtility.GrammarsDirectory, "javascript", "examples"), Language.JavaScript, Stage.Ust, searchPredicate: fileName => ignoredFiles.All(ignoredFile => !fileName.EndsWith(ignoredFile))); }
public void Parse_TSqlSyntax_WithoutErrors() { TestUtility.CheckProject(Path.Combine(TestUtility.GrammarsDirectory, "tsql", "examples"), TSql.Language, Stage.ParseTree); }
public void Parse_PlSqlFiles_WithoutErrors() { TestUtility.CheckProject(Path.Combine(TestUtility.GrammarsDirectory, "plsql", "examples"), PlSql.Language, Stage.ParseTree); }
public void Parse_SqlFiles_WithoutErrors(Language language) { TestUtility.CheckProject(Path.Combine(TestUtility.GrammarsDirectory, language.ToString().ToLowerInvariant(), "examples"), language, Stage.ParseTree); }
public void Convert_JavaScriptSyntaxFiles_WithoutErrors() { TestUtility.CheckProject(Path.Combine(TestUtility.GrammarsDirectory, "javascript", "examples"), JavaScript.Language, Stage.Ust); }
public void Convert_SqlSyntax_WithoutErrors(Language dialect) { TestUtility.CheckProject(Path.Combine(TestUtility.GrammarsDirectory, dialect.ToString().ToLowerInvariant(), "examples"), dialect, Stage.Ust); }
public void Parse_PhpSyntax_WithoutErrors() { TestUtility.CheckProject(Path.Combine(TestUtility.GrammarsDirectory, "php", "examples"), Php.Language, Stage.ParseTree, searchPredicate: fileName => !fileName.Contains("Error")); }
public void Convert_PhpFiles_WithoutErrors() { TestUtility.CheckProject(Path.Combine(TestUtility.GrammarsDirectory, "php", "examples"), Language.Php, Stage.Ust, searchPredicate: fileName => !fileName.Contains("Error")); }