public void SH001_TableNames(string name, int numberOfTables) { FileInfo sourceXlsx = new FileInfo(Path.Combine(TestUtil.SourceDir.FullName, name)); using (SpreadsheetDocument sDoc = SpreadsheetDocument.Open(sourceXlsx.FullName, true)) { var table = SmlDataRetriever.TableNames(sDoc); Assert.Equal(numberOfTables, table.Length); } }
public void SH001_TableNames(string name, int numberOfTables) { var sourceDir = new DirectoryInfo("../../../../TestFiles/"); var sourceXlsx = new FileInfo(Path.Combine(sourceDir.FullName, name)); using var sDoc = SpreadsheetDocument.Open(sourceXlsx.FullName, false); var table = SmlDataRetriever.TableNames(sDoc); Assert.Equal(numberOfTables, table.Length); }