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 }
public void TestEmptyFile_1() { #if DEBUG CLITestHelper.Test("emptyFile_1_debug", ReturnCode.FatalError); #else CLITestHelper.Test("emptyFile_1_release", ReturnCode.FatalError); #endif }
public void TestHaltOnMissingCopy_1() { #if EUROINFO_RULES CLITestHelper.Test("haltOnMissingCopy_1_EI", ReturnCode.MissingCopy); #else CLITestHelper.Test("haltOnMissingCopy_1", ReturnCode.MissingCopy); #endif }
public void TestExtractCopies() { #if EUROINFO_RULES CLITestHelper.Test("extractUsedCopies_EI", ReturnCode.MissingCopy); #else CLITestHelper.Test("extractUsedCopies", ReturnCode.MissingCopy); #endif }
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 }
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); }
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 }
public void TestReplacingSyntaxOption() { #if EUROINFO_RULES CLITestHelper.Test("replacingSyntaxOption", ReturnCode.ParsingDiagnostics); #endif }
public void TestExecToStep_1() { CLITestHelper.Test("execToStep_1"); }
public void AvoidLoadingIntrinsicAndDependencies() { CLITestHelper.Test("avoidLoadingIntrinsicAndDependencies", ReturnCode.Success); }
public void TestGenerate_1() { CLITestHelper.Test("generate_1", ReturnCode.Success); }
public void TestGenerate_MixedFiles() { CLITestHelper.Test("generate_mixedFiles", ReturnCode.Success); }
public void TestParse_1() { CLITestHelper.Test("parse_1", ReturnCode.Success); }
public void TestExecToStep_1() { CLITestHelper.Test("execToStep_1", ReturnCode.Success); }
public void TestOutputFormat() { CLITestHelper.Test("outputSignature_1", ReturnCode.Success); }
public void TestArgumentsErrors() { CLITestHelper.ReadConsole("arguments_errors_1", ReturnCode.MultipleErrors); CLITestHelper.ReadConsole("arguments_errors_2", ReturnCode.MultipleErrors); CLITestHelper.ReadConsole("arguments_errors_3", ReturnCode.MultipleErrors); }
public void TestGenerate_1() { CLITestHelper.Test("generate_1"); }
public void CrossCompilationSources() { CLITestHelper.Test("cross_compilation_sources", ReturnCode.Success); }
public void TestHaltOnMissingCopy_1() { CLITestHelper.Test("haltOnMissingCopy_1", ReturnCode.MissingCopy); }
public void TestDependencies() { CLITestHelper.Test("dependencies_1"); CLITestHelper.Test("dependencies_2"); CLITestHelper.Test("dependencies_3"); }
public void TestHaltOnMissingCopy_1() { CLITestHelper.Test("haltOnMissingCopy_1"); }