Esempio n. 1
0
 public void TestReturnCode()
 {
     CLITestHelper.Test("return_code_0", ReturnCode.Success);            //0
     CLITestHelper.Test("return_code_2", ReturnCode.OutputFileError);    // 1001
     CLITestHelper.Test("return_code_3", ReturnCode.ParsingDiagnostics); // 1000
     CLITestHelper.Test("return_code_4", ReturnCode.Warning);            //1
 }
Esempio n. 2
0
 public void TestEmptyFile_1()
 {
     #if DEBUG
     CLITestHelper.Test("emptyFile_1_debug", ReturnCode.FatalError);
     #else
     CLITestHelper.Test("emptyFile_1_release", ReturnCode.FatalError);
     #endif
 }
Esempio n. 3
0
        public void TestHaltOnMissingCopy_1()
        {
#if EUROINFO_RULES
            CLITestHelper.Test("haltOnMissingCopy_1_EI", ReturnCode.MissingCopy);
#else
            CLITestHelper.Test("haltOnMissingCopy_1", ReturnCode.MissingCopy);
#endif
        }
Esempio n. 4
0
        public void TestExtractCopies()
        {
#if EUROINFO_RULES
            CLITestHelper.Test("extractUsedCopies_EI", ReturnCode.MissingCopy);
#else
            CLITestHelper.Test("extractUsedCopies", ReturnCode.MissingCopy);
#endif
        }
Esempio n. 5
0
        public void TestDependencies()
        {
            CLITestHelper.Test("dependencies_1", ReturnCode.Success);
            CLITestHelper.Test("dependencies_2", ReturnCode.Success);
            CLITestHelper.Test("dependencies_3", ReturnCode.ParsingDiagnostics);
#if EUROINFO_RULES
            CLITestHelper.Test("ei_dependencies_1", ReturnCode.ParsingDiagnostics);
#endif
        }
Esempio n. 6
0
 public void TestParse_1()
 {
     //From folder ressources\parse_1
     //Run command TypeCobol.CLI with the content of CLIArguments.txt as arguments
     //Check that the actual "output" folder (the one created by the CLI) match the content of the expected "output" folder
     //the one on Git.
     //The number of files and the content of the files must be identical
     CLITestHelper.Test("parse_1", ReturnCode.Success);
 }
Esempio n. 7
0
        public void TestDependencies()
        {
            CLITestHelper.Test("dependencies_1", ReturnCode.Success);
            CLITestHelper.Test("dependencies_2", ReturnCode.Success);
            CLITestHelper.Test("dependencies_3", ReturnCode.ParsingDiagnostics);
            CLITestHelper.ReadConsole("dependencies_4", ReturnCode.DependenciesError);            //No dependencies found
            CLITestHelper.Test("dependencies_5", ReturnCode.Success);
#if EUROINFO_RULES
            CLITestHelper.Test("ei_dependencies_1", ReturnCode.ParsingDiagnostics);
#endif
        }
Esempio n. 8
0
        public void TestReplacingSyntaxOption()
        {
#if EUROINFO_RULES
            CLITestHelper.Test("replacingSyntaxOption", ReturnCode.ParsingDiagnostics);
#endif
        }
Esempio n. 9
0
 public void TestExecToStep_1()
 {
     CLITestHelper.Test("execToStep_1");
 }
Esempio n. 10
0
 public void AvoidLoadingIntrinsicAndDependencies()
 {
     CLITestHelper.Test("avoidLoadingIntrinsicAndDependencies", ReturnCode.Success);
 }
Esempio n. 11
0
 public void TestGenerate_1()
 {
     CLITestHelper.Test("generate_1", ReturnCode.Success);
 }
Esempio n. 12
0
 public void TestGenerate_MixedFiles()
 {
     CLITestHelper.Test("generate_mixedFiles", ReturnCode.Success);
 }
Esempio n. 13
0
 public void TestParse_1()
 {
     CLITestHelper.Test("parse_1", ReturnCode.Success);
 }
Esempio n. 14
0
 public void TestExecToStep_1()
 {
     CLITestHelper.Test("execToStep_1", ReturnCode.Success);
 }
Esempio n. 15
0
 public void TestOutputFormat()
 {
     CLITestHelper.Test("outputSignature_1", ReturnCode.Success);
 }
Esempio n. 16
0
 public void TestArgumentsErrors()
 {
     CLITestHelper.ReadConsole("arguments_errors_1", ReturnCode.MultipleErrors);
     CLITestHelper.ReadConsole("arguments_errors_2", ReturnCode.MultipleErrors);
     CLITestHelper.ReadConsole("arguments_errors_3", ReturnCode.MultipleErrors);
 }
Esempio n. 17
0
 public void TestGenerate_1()
 {
     CLITestHelper.Test("generate_1");
 }
Esempio n. 18
0
 public void CrossCompilationSources()
 {
     CLITestHelper.Test("cross_compilation_sources", ReturnCode.Success);
 }
Esempio n. 19
0
 public void TestHaltOnMissingCopy_1()
 {
     CLITestHelper.Test("haltOnMissingCopy_1", ReturnCode.MissingCopy);
 }
Esempio n. 20
0
 public void TestDependencies()
 {
     CLITestHelper.Test("dependencies_1");
     CLITestHelper.Test("dependencies_2");
     CLITestHelper.Test("dependencies_3");
 }
Esempio n. 21
0
 public void TestHaltOnMissingCopy_1()
 {
     CLITestHelper.Test("haltOnMissingCopy_1");
 }