Skip to content

Commit f259c3f

Browse files
committed
Test added for Apostrophes
1 parent 93e96d9 commit f259c3f

File tree

2 files changed

+92
-66
lines changed

2 files changed

+92
-66
lines changed

CSVEditorFunctions/CSVEditorFunctions.xml

Lines changed: 79 additions & 66 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CSVEditorxUnitTests/CSVEditorTest.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,19 @@ public void BaseCSVReadTest()
1919
Assert.Equal(36635, CSVEdit.CSVDT.Rows.Count);
2020
}
2121

22+
[Fact]
23+
public void BaseCSVReadTestWithApostrophes()
24+
{
25+
string filename = "./Resources/FL_insurance_sample.csv";
26+
27+
CSVEditor CSVEdit = new CSVEditor();
28+
29+
CSVEdit.ReadFile(filename, true);
30+
31+
Assert.Equal(18, CSVEdit.CSVDT.Columns.Count);
32+
Assert.Equal(36635, CSVEdit.CSVDT.Rows.Count);
33+
}
34+
2235
[Fact]
2336
public void BaseCSVWriteTest()
2437
{

0 commit comments

Comments
 (0)