public GelFrameAggregate(RecordStream rs, ChartRecordAggregate container) : base(RuleName_GELFRAME, container) { gelFrame1 = (GelFrameRecord)rs.GetNext(); int sid = rs.PeekNextChartSid(); if (sid == GelFrameRecord.sid) { gelFrame2 = (GelFrameRecord)rs.GetNext(); sid = rs.PeekNextChartSid(); } if (sid == ContinueRecord.sid) { while (rs.PeekNextChartSid() == ContinueRecord.sid) { continues.Add((ContinueRecord)rs.GetNext()); } } if (rs.PeekNextChartSid() == BeginRecord.sid) { rs.GetNext(); picF = (PicFRecord)rs.GetNext(); Record r = rs.GetNext();//EndRecord Debug.Assert(r.GetType() == typeof(EndRecord)); } }
public void TestLoad() { GelFrameRecord record = new GelFrameRecord(TestcaseRecordInputStream.Create((short)0x1066, data)); //Assert.AreEqual(0xD, record.Options); }