public void TestConvertToXMLUsingFlatFileInputWithoutSeparator()
        {
            var columns = new[]
            {
                new Column {
                    Length = 3
                },
                new Column {
                    Length = 3
                },
                new Column {
                    Length = 2
                },
                new Column {
                    Length = 4
                },
                new Column {
                    Length = 4
                }
            };

            var options = new Parameters {
                Input = "asd123as1234asdf"
            };
            var csvOptions = new CsvInputParameters {
                CSVSeparator = null, ColumnLengths = columns, InputHasHeaderRow = false, TrimOuputColumns = false
            };
            var result = ConvertData.ConvertToXML(options, csvOptions, null);

            Assert.IsTrue(result.Result.StartsWith("<NewDataSet><Table1><Column1>asd</Column1>"));
        }
        public void TestConvertToXMLUsingSeparatorAndTrim()
        {
            var options = new Parameters {
                Input = "asd ;as;asdf"
            };
            var csvOptions = new CsvInputParameters
            {
                CSVSeparator      = ";",
                ColumnLengths     = null,
                InputHasHeaderRow = false,
                TrimOuputColumns  = true
            };
            var result = ConvertData.ConvertToXML(options, csvOptions, null);

            Assert.IsTrue(result.Result.StartsWith("<NewDataSet><Table1><Column1>asd</Column1>"));
        }