private void ConfirmAggregatedRecords(List <RecordBase> recordStream) { InternalSheet sheet = InternalSheet.CreateSheet(); sheet.Records.Clear(); ((List <RecordBase>)sheet.Records).AddRange(recordStream); IList sheetRecords = sheet.Records; DrawingManager2 drawingManager = new DrawingManager2(new EscherDggRecord()); sheet.AggregateDrawingRecords(drawingManager, false); Assert.AreEqual(4, sheetRecords.Count); Assert.AreEqual(BOFRecord.sid, ((Record)sheetRecords[0]).Sid); Assert.AreEqual(EscherAggregate.sid, ((Record)sheetRecords[1]).Sid); Assert.AreEqual(WindowTwoRecord.sid, ((Record)sheetRecords[2]).Sid); Assert.AreEqual(EOFRecord.sid, ((Record)sheetRecords[3]).Sid); }