public void Emtpy_File_Should_Display_Nothing()
        {
            const string emptyFile = "emptyFile.csv";

            var csvProcessor = new CsvProcessor();
            csvProcessor.Process(emptyFile);

            var result = csvProcessor.GetResult();
            result.Should().BeEmpty();
        }
        public void Person_File_Should_Display_Headerline_Correctly()
        {
            var csvProcessor = new CsvProcessor();
            csvProcessor.Process("singleLineFile.csv");

            var result = csvProcessor.GetResult();
            result.Should().Be(
                "|City|Age|Name|"
                + Environment.NewLine
                + "+----+---+----+");
        }
Beispiel #3
0
        public void Emtpy_File_Should_Display_Nothing()
        {
            const string emptyFile = "emptyFile.csv";

            var csvProcessor = new CsvProcessor();

            csvProcessor.Process(emptyFile);

            var result = csvProcessor.GetResult();

            result.Should().BeEmpty();
        }
Beispiel #4
0
        public void Person_File_Should_Display_Headerline_Correctly()
        {
            var csvProcessor = new CsvProcessor();

            csvProcessor.Process("singleLineFile.csv");

            var result = csvProcessor.GetResult();

            result.Should().Be(
                "|City|Age|Name|"
                + Environment.NewLine
                + "+----+---+----+");
        }