Exemplo n.º 1
0
 public void ParseFailureIfNotFound()
 {
     try {
         CodegenTestUtils.ParseConfig("NOT_FOUND");
         throw new System.Exception("Expected FileNotFoundException");
     } catch (FileNotFoundException) { }            // Test OK
 }
Exemplo n.º 2
0
        public void ParseLineExceed()
        {
            var skeletons = CodegenTestUtils.ParseConfig(Path.Combine("TypeCobol", "skeletons") + ".xml");

            CodegenTestUtils.ParseGenerateCompare(Path.Combine("TypeCobol", "LineExceed") + ".rdz.cbl", skeletons);
            CodegenTestUtils.ParseGenerateCompare(Path.Combine("TypeCobol", "LineExceed2") + ".rdz.cbl", skeletons);
        }
Exemplo n.º 3
0
        public void QualifiedNamesInsideFunctions()
        {
            var skeletons = CodegenTestUtils.ParseConfig(Path.Combine("TypeCobol", "skeletons") + ".xml");

            CodegenTestUtils.ParseGenerateCompare(Path.Combine("TypeCobol", "QualifiedNamesInsideFunctions") + ".rdz.cbl", skeletons);
            //CodegenTestUtils.ParseGenerateCompare(Path.Combine("TypeCobol", "QualifiedNamesInsideFunctions2") + ".rdz.cbl", skeletons);
        }
Exemplo n.º 4
0
        public void ParseUnsafe()
        {
            string file      = Path.Combine("TypeCobol", "unsafe");
            var    skeletons = CodegenTestUtils.ParseConfig("Types.xml");         // CodegenTestUtils.ParseConfig(file+".xml");

            CodegenTestUtils.ParseGenerateCompare(file + ".rdz.cbl", skeletons);
        }
Exemplo n.º 5
0
        public void MisPlaceCopyInstrWithProcMetaDataTest()
        {
            var skeletons = CodegenTestUtils.ParseConfig(Path.Combine("TypeCobol", "skeletons") + ".xml");

            CodegenTestUtils.ParseGenerateCompare(Path.Combine("TypeCobol", "MisPlaceCopyInstrWithProcMetaData") + ".rdz.tcbl", skeletons, false, "TestTypeCobolVersion");
            CodegenTestUtils.ParseGenerateCompare(Path.Combine("TypeCobol", "MisPlaceCopyInstrWithProcMetaData2") + ".rdz.tcbl", skeletons, false, "TestTypeCobolVersion");
        }
Exemplo n.º 6
0
        public void CobolLineSplit_IN_VarTest()
        {
            var skeletons = CodegenTestUtils.ParseConfig(Path.Combine("TypeCobol", "skeletons") + ".xml");

            CodegenTestUtils.ParseGenerateCompare(Path.Combine("TypeCobol", "CobolLineSplit_IN_Var") + ".rdz.tcbl", skeletons, false, "TestTypeCobolVersion");
            CodegenTestUtils.ParseGenerateCompare(Path.Combine("TypeCobol", "CobolLineSplit_IN_Var1") + ".rdz.tcbl", skeletons, false, "TestTypeCobolVersion");
            CodegenTestUtils.ParseGenerateCompare(Path.Combine("TypeCobol", "CobolLineSplit_IN_Var2") + ".rdz.tcbl", skeletons, false, "TestTypeCobolVersion");
        }
Exemplo n.º 7
0
        public void ParseProcedureCallPublic()
        {
            var skeletons = CodegenTestUtils.ParseConfig(Path.Combine("TypeCobol", "skeletons") + ".xml");

            CodegenTestUtils.ParseGenerateCompare(Path.Combine("TypeCobol", "ProcedureCall-Public") + ".rdz.tcbl", skeletons);
            CodegenTestUtils.ParseGenerateCompare(Path.Combine("TypeCobol", "ProcedureCall-Public2") + ".rdz.tcbl", skeletons);
            CodegenTestUtils.ParseGenerateCompare(Path.Combine("TypeCobol", "ProcedureCall-Public3") + ".rdz.tcbl", skeletons);
        }
Exemplo n.º 8
0
        public void CallPublicProcFromPublicProc()
        {
            var skeletons = CodegenTestUtils.ParseConfig(Path.Combine("TypeCobol", "skeletons") + ".xml");

            CodegenTestUtils.ParseGenerateCompare(Path.Combine("TypeCobol", "CallPublicProcFromPublicProc") + ".rdz.tcbl", skeletons);
            CodegenTestUtils.ParseGenerateCompare(Path.Combine("TypeCobol", "CallPublicProcFromPublicProc-DeclarativesNoDebug") + ".rdz.tcbl", skeletons);
            CodegenTestUtils.ParseGenerateCompare(Path.Combine("TypeCobol", "CallPublicProcFromPublicProc-DeclarativesWithDebug") + ".rdz.tcbl", skeletons);
        }
Exemplo n.º 9
0
        public void CallPublicProcFromPrivateProc()
        {
            var skeletons = CodegenTestUtils.ParseConfig(Path.Combine("TypeCobol", "skeletons") + ".xml");

            CodegenTestUtils.ParseGenerateCompare(Path.Combine("TypeCobol", "CallPublicProcFromPrivateProc") + ".rdz.tcbl", skeletons);
            CodegenTestUtils.ParseGenerateCompare(Path.Combine("TypeCobol", "CallPublicProcFromPrivateProc3") + ".rdz.tcbl", skeletons);
            CodegenTestUtils.ParseGenerateCompare(Path.Combine("TypeCobol", "CallPublicProcFromPrivateProc4") + ".rdz.tcbl", skeletons);
        }
Exemplo n.º 10
0
        public void RemarksGeneration()
        {
            var skeletons = CodegenTestUtils.ParseConfig(Path.Combine("TypeCobol", "skeletons") + ".xml");

            CodegenTestUtils.ParseGenerateCompare(Path.Combine("TypeCobol", "Remarks", "RemarksLess") + ".rdz.cbl", skeletons, true);
            CodegenTestUtils.ParseGenerateCompare(Path.Combine("TypeCobol", "Remarks", "RemarksPartial") + ".rdz.cbl", skeletons, true);
            CodegenTestUtils.ParseGenerateCompare(Path.Combine("TypeCobol", "Remarks", "RemarksNonUsed") + ".rdz.cbl", skeletons, true);
            CodegenTestUtils.ParseGenerateCompare(Path.Combine("TypeCobol", "Remarks", "NestedProgram") + ".rdz.cbl", skeletons, true);
        }
Exemplo n.º 11
0
        public void ParseLibrary()
        {
            var skeletons = CodegenTestUtils.ParseConfig(Path.Combine("TypeCobol", "skeletons") + ".xml");

            CodegenTestUtils.ParseGenerateCompare(Path.Combine("TypeCobol", "Library") + ".rdz.cbl", skeletons);
            CodegenTestUtils.ParseGenerateCompare(Path.Combine("TypeCobol", "Library2") + ".rdz.tcbl", skeletons);
            CodegenTestUtils.ParseGenerateCompare(Path.Combine("TypeCobol", "Library3") + ".rdz.tcbl", skeletons);
            CodegenTestUtils.ParseGenerateCompare(Path.Combine("TypeCobol", "Library4") + ".rdz.tcbl", skeletons);
        }
Exemplo n.º 12
0
        public void ParseBooleans()
        {
            string file      = Path.Combine("TypeCobol", "TypeBOOL");
            var    skeletons = CodegenTestUtils.ParseConfig(file + ".xml");

            Assert.AreEqual(skeletons.Count, 2);
            Assert.AreEqual(skeletons[0].Patterns.Count, 1);
            Assert.AreEqual(skeletons[1].Patterns.Count, 1);

            CodegenTestUtils.ParseGenerateCompare(file + ".rdz.cbl", skeletons);
        }
Exemplo n.º 13
0
        public void ParseTypes()
        {
            string file      = Path.Combine("TypeCobol", "Types");
            var    skeletons = CodegenTestUtils.ParseConfig("Types.xml");

            Assert.AreEqual(skeletons.Count, 3);
            Assert.AreEqual(skeletons[0].Patterns.Count, 1);
            Assert.AreEqual(skeletons[1].Patterns.Count, 1);
            Assert.AreEqual(skeletons[2].Patterns.Count, 1);

            CodegenTestUtils.ParseGenerateCompare(file + ".rdz.cbl", skeletons);

            file = Path.Combine("TypeCobol", "Types2");
            //CodegenTestUtils.ParseGenerateCompare(file + ".rdz.cbl", skeletons);
        }
Exemplo n.º 14
0
        public void GenQualifiedBoolVarTest()
        {
            var skeletons = CodegenTestUtils.ParseConfig(Path.Combine("TypeCobol", "skeletons") + ".xml");

            CodegenTestUtils.ParseGenerateCompare(Path.Combine("TypeCobol", "GenQualifiedBoolVar") + ".rdz.tcbl", skeletons, false, "TestTypeCobolVersion");
        }
Exemplo n.º 15
0
        public void ParseTypeDefLevel88()
        {
            var skeletons = CodegenTestUtils.ParseConfig(Path.Combine("TypeCobol", "skeletons") + ".xml");

            CodegenTestUtils.ParseGenerateCompare(Path.Combine("TypeCobol", "TypeDefLevel88") + ".rdz.cbl", skeletons);
        }
Exemplo n.º 16
0
        public void ProgramParameterCompUsageTypesTest()
        {
            var skeletons = CodegenTestUtils.ParseConfig(Path.Combine("TypeCobol", "skeletons") + ".xml");

            CodegenTestUtils.ParseGenerateCompare(Path.Combine("TypeCobol", "ProgramParameterCompUsageTypes") + ".rdz.tcbl", skeletons, false, "TestTypeCobolVersion");
        }
Exemplo n.º 17
0
        public void ProcedureSubscriptTest()
        {
            var skeletons = CodegenTestUtils.ParseConfig(Path.Combine("TypeCobol", "skeletons") + ".xml");

            CodegenTestUtils.ParseGenerateCompare(Path.Combine("TypeCobol", "ProcedureSubscript") + ".rdz.tcbl", skeletons, false, "TestTypeCobolVersion");
        }
Exemplo n.º 18
0
        public void DeclarativesTest()
        {
            var skeletons = CodegenTestUtils.ParseConfig(Path.Combine("TypeCobol", "skeletons") + ".xml");

            CodegenTestUtils.ParseGenerateCompare(Path.Combine("TypeCobol", "Declaratives") + ".rdz.tcbl", skeletons);
        }
Exemplo n.º 19
0
        public void ParseVariableTypeExternal()
        {
            var skeletons = CodegenTestUtils.ParseConfig(Path.Combine("TypeCobol", "skeletons") + ".xml");

            CodegenTestUtils.ParseGenerateCompare(Path.Combine("TypeCobol", "VariableTypeExternal") + ".rdz.tcbl", skeletons);
        }
Exemplo n.º 20
0
 public void ParseEmpty()
 {
     Assert.AreEqual(CodegenTestUtils.ParseConfig("Empty.xml").Count, 0);
 }
Exemplo n.º 21
0
        public void TypedefQualifIndexedBy10()
        {
            var skeletons = CodegenTestUtils.ParseConfig(Path.Combine("TypeCobol", "skeletons") + ".xml");

            CodegenTestUtils.ParseGenerateCompare(Path.Combine("TypeCobol", "TypedefQualifIndexedBy10") + ".rdz.tcbl", skeletons);
        }
Exemplo n.º 22
0
        public void TypedefQualifBoolSetOverCol72()
        {
            var skeletons = CodegenTestUtils.ParseConfig(Path.Combine("TypeCobol", "skeletons") + ".xml");

            CodegenTestUtils.ParseGenerateCompare(Path.Combine("TypeCobol", "TypedefQualifBoolSetOverCol72") + ".rdz.tcbl", skeletons);
        }
Exemplo n.º 23
0
        public void Non72ColumnOverflowCheck()
        {
            var skeletons = CodegenTestUtils.ParseConfig(Path.Combine("TypeCobol", "skeletons") + ".xml");

            CodegenTestUtils.ParseGenerateCompare(Path.Combine("TypeCobol", "Non72ColumnOverflowCheck") + ".rdz.tcbl", skeletons);
        }
Exemplo n.º 24
0
        public void ParseTypedefNoPic()
        {
            var skeletons = CodegenTestUtils.ParseConfig(Path.Combine("TypeCobol", "skeletons") + ".xml");

            CodegenTestUtils.ParseGenerateCompare(Path.Combine("TypeCobol", "TypedefNoPic") + ".rdz.tcbl", skeletons);
        }
Exemplo n.º 25
0
        public void ParseMoveUnsafe()
        {
            var skeletons = CodegenTestUtils.ParseConfig(Path.Combine("TypeCobol", "skeletons") + ".xml");

            CodegenTestUtils.ParseGenerateCompare(Path.Combine("TypeCobol", "MoveUnsafe") + ".rdz.tcbl", skeletons);
        }
Exemplo n.º 26
0
        public void ProcPublicWithoutDataDivision()
        {
            var skeletons = CodegenTestUtils.ParseConfig(Path.Combine("TypeCobol", "skeletons") + ".xml");

            CodegenTestUtils.ParseGenerateCompare(Path.Combine("TypeCobol", "ProcPublicWithoutDataDivision") + ".rdz.tcbl", skeletons);
        }
Exemplo n.º 27
0
        public void ParseSuccessiveCalls()
        {
            var skeletons = CodegenTestUtils.ParseConfig(Path.Combine("TypeCobol", "skeletons") + ".xml");

            CodegenTestUtils.ParseGenerateCompare(Path.Combine("TypeCobol", "SuccessiveCalls") + ".rdz.cbl", skeletons);
        }
Exemplo n.º 28
0
        public void BooleanTester()
        {
            var skeletons = CodegenTestUtils.ParseConfig(Path.Combine("TypeCobol", "skeletons") + ".xml");

            CodegenTestUtils.ParseGenerateCompare(Path.Combine("TypeCobol", "BooleanTester") + ".rdz.tcbl", skeletons);
        }
Exemplo n.º 29
0
        public void TypedefFixedFormatCutLine()
        {
            var skeletons = CodegenTestUtils.ParseConfig(Path.Combine("TypeCobol", "skeletons") + ".xml");

            CodegenTestUtils.ParseGenerateCompare(Path.Combine("TypeCobol", "TypedefFixedFormatCutLine") + ".rdz.tcbl", skeletons);
        }
Exemplo n.º 30
0
        public void ParseSetBoolProcedure()
        {
            var skeletons = CodegenTestUtils.ParseConfig(Path.Combine("TypeCobol", "skeletons") + ".xml");

            CodegenTestUtils.ParseGenerateCompare(Path.Combine("TypeCobol", "SetBoolProcedure") + ".rdz.tcbl", skeletons);
        }