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)));
        }
Пример #2
0
 public void Parse_TSqlSyntax_WithoutErrors()
 {
     TestUtility.CheckProject(Path.Combine(TestUtility.GrammarsDirectory, "tsql", "examples"),
                              TSql.Language, Stage.ParseTree);
 }
Пример #3
0
 public void Parse_PlSqlFiles_WithoutErrors()
 {
     TestUtility.CheckProject(Path.Combine(TestUtility.GrammarsDirectory, "plsql", "examples"),
                              PlSql.Language, Stage.ParseTree);
 }
Пример #4
0
 public void Parse_SqlFiles_WithoutErrors(Language language)
 {
     TestUtility.CheckProject(Path.Combine(TestUtility.GrammarsDirectory, language.ToString().ToLowerInvariant(), "examples"),
                              language, Stage.ParseTree);
 }
Пример #5
0
 public void Convert_JavaScriptSyntaxFiles_WithoutErrors()
 {
     TestUtility.CheckProject(Path.Combine(TestUtility.GrammarsDirectory, "javascript", "examples"),
                              JavaScript.Language, Stage.Ust);
 }
Пример #6
0
 public void Convert_SqlSyntax_WithoutErrors(Language dialect)
 {
     TestUtility.CheckProject(Path.Combine(TestUtility.GrammarsDirectory, dialect.ToString().ToLowerInvariant(), "examples"),
                              dialect, Stage.Ust);
 }
Пример #7
0
 public void Parse_PhpSyntax_WithoutErrors()
 {
     TestUtility.CheckProject(Path.Combine(TestUtility.GrammarsDirectory, "php", "examples"),
                              Php.Language, Stage.ParseTree, searchPredicate: fileName => !fileName.Contains("Error"));
 }
Пример #8
0
 public void Convert_PhpFiles_WithoutErrors()
 {
     TestUtility.CheckProject(Path.Combine(TestUtility.GrammarsDirectory, "php", "examples"),
                              Language.Php, Stage.Ust, searchPredicate: fileName => !fileName.Contains("Error"));
 }