示例#1
0
        protected override void DoRun(IShellContext context)
        {
            string file  = context.ResolveFile(context.Replace(File), ResolveFileMode.Input);
            var    model = ExcelModel.OpenFile(file);

            model.DataFormat = DataFormat;
            context.SetVariable(GetExcelVariableName(context), model);
        }
示例#2
0
        public void ExcelFileAnalyseTest()
        {
            var model = ExcelModel.OpenFile("ExportImportFormats/Combined.xlsx");

            Assert.True(new[] { "Album", "Artist" }.SequenceEqual(model.GetSheetNames()));
        }