public void TestLoad() { SeriesToChartGroupRecord record = new SeriesToChartGroupRecord(TestcaseRecordInputStream.Create(0x1045, data)); Assert.AreEqual(0x0, record.ChartGroupIndex); Assert.AreEqual(0x6, record.RecordSize); }
public void TestStore() { SeriesToChartGroupRecord record = new SeriesToChartGroupRecord(); record.ChartGroupIndex = ((short)0x0); 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() { SeriesToChartGroupRecord record = new SeriesToChartGroupRecord(); record.ChartGroupIndex = ((short)0x0); 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); } }