Beispiel #1
0
        public void TestCsvWriterCommasInHeader()
        {
            StringWriter  stringWriter  = new StringWriter();
            CSVFileWriter csvFileWriter = new CSVFileWriter(stringWriter);
            DataTable     dataTable     = CsvTestsSamples.CommasInHeaderDataTable();

            csvFileWriter.WriteFromDataTable(dataTable);
            csvFileWriter.Close();
            string expected = CsvTestsSamples.CommasInHeaderCsvContents();

            Assert.AreEqual(expected, stringWriter.ToString());
        }
Beispiel #2
0
 public void TestCsvReaderCommasInHeader()
 {
     CompareToDataTable(CsvTestsSamples.CommasInHeaderCsvContents(), CsvTestsSamples.CommasInHeaderDataTable());
 }