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);
            }
        }
Ejemplo n.º 2
0
        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);
        }