|
@@ -5,6 +5,8 @@ namespace ExcelInfoTests;
|
|
public class WorkbookInfoTests
|
|
public class WorkbookInfoTests
|
|
{
|
|
{
|
|
private const string DifferentTypesFile = "testFiles/differentTypes.xlsx";
|
|
private const string DifferentTypesFile = "testFiles/differentTypes.xlsx";
|
|
|
|
+ private const string DifferentTypesFileStartFrom = "testFiles/differentTypesStartFrom.xlsx";
|
|
|
|
+
|
|
[Fact]
|
|
[Fact]
|
|
public void GetInfoOnWorksheets()
|
|
public void GetInfoOnWorksheets()
|
|
{
|
|
{
|
|
@@ -13,4 +15,13 @@ public class WorkbookInfoTests
|
|
Assert.NotEqual(result.First(), result.Last());
|
|
Assert.NotEqual(result.First(), result.Last());
|
|
Assert.NotEqual(result.First().Columns, result.Last().Columns);
|
|
Assert.NotEqual(result.First().Columns, result.Last().Columns);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ [Fact]
|
|
|
|
+ public void GetInfoOnWorksheetsStartFrom()
|
|
|
|
+ {
|
|
|
|
+ var result = WorkbookInfo.GetInfoOnWorksheets(DifferentTypesFileStartFrom, 2).ToList();
|
|
|
|
+ Assert.Equal(2, result.Count());
|
|
|
|
+ Assert.NotEqual(result.First(), result.Last());
|
|
|
|
+ Assert.NotEqual(result.First().Columns, result.Last().Columns);
|
|
|
|
+ }
|
|
}
|
|
}
|