public void TestMissingExternSheetRecord_bug47001b() { Record[] recs = { SupBookRecord.CreateAddInFunctions(), new SSTRecord(), }; List <Record> recList = new List <Record>(recs); WorkbookRecordList wrl = new WorkbookRecordList(); LinkTable lt; try { lt = new LinkTable(recList, 0, wrl, new Dictionary <String, NameCommentRecord>()); } catch (Exception e) { if (e.Message.Equals("Expected an EXTERNSHEET record but got (Npoi.Core.HSSF.record.SSTRecord)")) { throw new AssertionException("Identified bug 47001b"); } throw e; } Assert.IsNotNull(lt); }
/** * Create a new block for registering add-in functions * * @see org.apache.poi.hssf.model.LinkTable#addNameXPtg(String) */ public ExternalBookBlock() { _externalBookRecord = SupBookRecord.CreateAddInFunctions(); _externalNameRecords = new ExternalNameRecord[0]; _crnBlocks = new CRNBlock[0]; }