|
@@ -10,6 +10,7 @@ public class ReaderTests
|
|
private const string DifficultFile = "testFiles/columnsOnTheLeftHeaderNotFirstRow.xlsx";
|
|
private const string DifficultFile = "testFiles/columnsOnTheLeftHeaderNotFirstRow.xlsx";
|
|
private const string MultipleSheetsFile = "testFiles/multipleSheets.xlsx";
|
|
private const string MultipleSheetsFile = "testFiles/multipleSheets.xlsx";
|
|
private const string DifferentTypesFile = "testFiles/differentTypes.xlsx";
|
|
private const string DifferentTypesFile = "testFiles/differentTypes.xlsx";
|
|
|
|
+ private const string WithFormulaFile = "testFiles/withFormula.xlsx";
|
|
|
|
|
|
[Fact]
|
|
[Fact]
|
|
public void Read()
|
|
public void Read()
|
|
@@ -100,4 +101,12 @@ public class ReaderTests
|
|
Assert.All(results, x => Assert.Null(x.Date));
|
|
Assert.All(results, x => Assert.Null(x.Date));
|
|
Assert.NotNull(results.FirstOrDefault(x => x.Int != null));
|
|
Assert.NotNull(results.FirstOrDefault(x => x.Int != null));
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ [Fact]
|
|
|
|
+ public void ReadWithFormula()
|
|
|
|
+ {
|
|
|
|
+ var reader = new ExcelReader(WithFormulaFile);
|
|
|
|
+ var results = reader.Read<TestWithFormula>().ToArray();
|
|
|
|
+ Assert.NotEmpty(results);
|
|
|
|
+ }
|
|
}
|
|
}
|