public void Should_set_workbook_from_stream() { using (FileStream stream = new FileStream(testFileXlsx, FileMode.Open, FileAccess.Read)) { var importer = new ExcelXlsxImporter(); importer.Open(stream); Assert.IsNotNull(importer.Workbook); } }
public void Should_throw_exception_if_file_stream_null() { var importer = new ExcelXlsxImporter(); Assert.Throws<ArgumentNullException>(() => importer.Open(null)); }
public void Should_throw_exception_if_file_stream_null() { var importer = new ExcelXlsxImporter(); Assert.Throws <ArgumentNullException>(() => importer.Open(null)); }