public void TestLoad() { SeriesChartGroupIndexRecord record = new SeriesChartGroupIndexRecord(TestcaseRecordInputStream.Create(0x1045, data)); Assert.AreEqual(0, record.ChartGroupIndex); Assert.AreEqual(6, record.RecordSize); }
public void TestLoad() { SeriesChartGroupIndexRecord record = new SeriesChartGroupIndexRecord(TestcaseRecordInputStream.Create(0x1045, data)); Assert.AreEqual(0, record.ChartGroupIndex); Assert.AreEqual(6, record.RecordSize); }
public void TestStore() { SeriesChartGroupIndexRecord record = new SeriesChartGroupIndexRecord(); record.ChartGroupIndex = ((short)0); byte[] recordBytes = record.Serialize(); Assert.AreEqual(recordBytes.Length - 4, data.Length); for (int i = 0; i < data.Length; i++) Assert.AreEqual(data[i], recordBytes[i + 4], "At offset " + i); }
public void TestStore() { SeriesChartGroupIndexRecord record = new SeriesChartGroupIndexRecord(); record.ChartGroupIndex = ((short)0); byte[] recordBytes = record.Serialize(); Assert.AreEqual(recordBytes.Length - 4, data.Length); for (int i = 0; i < data.Length; i++) { Assert.AreEqual(data[i], recordBytes[i + 4], "At offset " + i); } }