Exemplo 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
 }
Exemplo 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
 }
Exemplo 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
        }
Exemplo n.º 4
0
        public void TestExtractCopies()
        {
#if EUROINFO_RULES
            CLITestHelper.Test("extractUsedCopies_EI", ReturnCode.MissingCopy);
#else
            CLITestHelper.Test("extractUsedCopies", ReturnCode.MissingCopy);
#endif
        }
Exemplo 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
        }
Exemplo 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);
 }
Exemplo 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
        }
Exemplo n.º 8
0
 public void AvoidLoadingIntrinsicAndDependencies()
 {
     CLITestHelper.Test("avoidLoadingIntrinsicAndDependencies", ReturnCode.Success);
 }
Exemplo n.º 9
0
        public void TestReplacingSyntaxOption()
        {
#if EUROINFO_RULES
            CLITestHelper.Test("replacingSyntaxOption", ReturnCode.ParsingDiagnostics);
#endif
        }
Exemplo n.º 10
0
 public void TestGenerate_MixedFiles()
 {
     CLITestHelper.Test("generate_mixedFiles", ReturnCode.Success);
 }
Exemplo n.º 11
0
 public void TestExecToStep_1()
 {
     CLITestHelper.Test("execToStep_1");
 }
Exemplo n.º 12
0
 public void TestExecToStep_1()
 {
     CLITestHelper.Test("execToStep_1", ReturnCode.Success);
 }
Exemplo n.º 13
0
 public void TestGenerate_1()
 {
     CLITestHelper.Test("generate_1", ReturnCode.Success);
 }
Exemplo n.º 14
0
 public void TestOutputFormat()
 {
     CLITestHelper.Test("outputSignature_1", ReturnCode.Success);
 }
Exemplo n.º 15
0
 public void TestParse_1()
 {
     CLITestHelper.Test("parse_1", ReturnCode.Success);
 }
Exemplo n.º 16
0
 public void TestGenerate_1()
 {
     CLITestHelper.Test("generate_1");
 }
Exemplo n.º 17
0
 public void CrossCompilationSources()
 {
     CLITestHelper.Test("cross_compilation_sources", ReturnCode.Success);
 }
Exemplo n.º 18
0
 public void TestHaltOnMissingCopy_1()
 {
     CLITestHelper.Test("haltOnMissingCopy_1", ReturnCode.MissingCopy);
 }
Exemplo n.º 19
0
 public void TestDependencies()
 {
     CLITestHelper.Test("dependencies_1");
     CLITestHelper.Test("dependencies_2");
     CLITestHelper.Test("dependencies_3");
 }
Exemplo n.º 20
0
 public void TestHaltOnMissingCopy_1()
 {
     CLITestHelper.Test("haltOnMissingCopy_1");
 }