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 + "+----+---+----+"); }
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 + "+----+---+----+"); }