Ejemplo n.º 1
0
        public void MultiLine31()
        {
            Reader      reader = Reader.CreateStringReader(ExampleStrings.DataType.MultiLines31);
            IDataParser parser = CreateDataParser(reader);

            AssertParsedUsingXml(parser, DataTypeModel.Factory("DataType", "MSF062-DATA-2-062-PB PIC X(24)", "[ 33] Reference data 2"));
        }
Ejemplo n.º 2
0
        public void SingleLine15()
        {
            Reader      reader = Reader.CreateStringReader(ExampleStrings.DataType.SingleLine15);
            IDataParser parser = CreateDataParser(reader);

            AssertParsedUsingXml(parser, DataTypeModel.Factory("DataType", "MSF062-REQ-NO-RC PIC X(6)", "[ 38] Requisition number"));
        }
Ejemplo n.º 3
0
        public void MultiLine05()
        {
            Reader      reader = Reader.CreateStringReader(ExampleStrings.DataType.MultiLines05);
            IDataParser parser = CreateDataParser(reader);

            AssertParsedUsingXml(parser, DataTypeModel.Factory("DataType", "DSTRCT-CODE PIC X(4)", "[ 1] District Code MANDATORY VALUE\n(DSTRCT-CODE) ERROR\n(6534) ACTIVE\nDB,KEY:0"));
        }
Ejemplo n.º 4
0
        public void SingleLine13()
        {
            Reader      reader = Reader.CreateStringReader(ExampleStrings.DataType.SingleLine13);
            IDataParser parser = CreateDataParser(reader);

            AssertParsedUsingXml(parser, DataTypeModel.Factory("DataType", "MSF061-MSB566-RUN-1A PIC X(4)", "[ 5] MSB566 Run Number NUMERIC RANGE (11)"));
        }
Ejemplo n.º 5
0
        public void SingleLine11()
        {
            Reader      reader = Reader.CreateStringReader(ExampleStrings.DataType.SingleLine11);
            IDataParser parser = CreateDataParser(reader);

            AssertParsedUsingXml(parser, DataTypeModel.Factory("DataType", "SUBLEDGER-TYPE PIC X(2)", "[ 30] Subledger Account Type OPTIONAL TABLE ('SA')"));
        }
Ejemplo n.º 6
0
        public void SingleLine09()
        {
            Reader      reader = Reader.CreateStringReader(ExampleStrings.DataType.SingleLine09);
            IDataParser parser = CreateDataParser(reader);

            AssertParsedUsingXml(parser, DataTypeModel.Factory("DataType", "AVAIL-SOH PIC S9(9) COMP-3", "[1851] Available SOH"));
        }
Ejemplo n.º 7
0
        public void SingleLine05Trimmed()
        {
            Reader      reader = Reader.CreateStringReader(ExampleStrings.DataType.SingleLine05.Substring(1));
            IDataParser parser = CreateDataParser(reader);

            AssertParsedUsingXml(parser, DataTypeModel.Factory("DataType", "FULL-PERIOD PIC X(6)", "[ 5] Full Period CCYYPP DB,KEY:0"));
        }
Ejemplo n.º 8
0
        public void SingleLine03()
        {
            Reader      reader = Reader.CreateStringReader(ExampleStrings.DataType.SingleLine03);
            IDataParser parser = CreateDataParser(reader);

            AssertParsedUsingXml(parser, DataTypeModel.Factory("DataType", "TAX-PERIOD-CLOSED PIC X(1)", "[ 27] Tax Period Closed DB"));
        }