private static AxisLineFormatRecord CreateAxisLineFormatRecord(short format) { AxisLineFormatRecord r = new AxisLineFormatRecord(); r.AxisType = (format); return(r); }
public void TestLoad() { AxisLineFormatRecord record = new AxisLineFormatRecord(TestcaseRecordInputStream.Create((short)0x1021, data)); Assert.AreEqual(AxisLineFormatRecord.AXIS_TYPE_MAJOR_GRID_LINE, record.AxisType); Assert.AreEqual(6, record.RecordSize); }
public void TestStore() { AxisLineFormatRecord record = new AxisLineFormatRecord(); record.AxisType = (AxisLineFormatRecord.AXIS_TYPE_MAJOR_GRID_LINE); 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() { AxisLineFormatRecord record = new AxisLineFormatRecord(); record.AxisType = (AxisLineFormatRecord.AXIS_TYPE_MAJOR_GRID_LINE); 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); } }
private AxisLineFormatRecord CreateAxisLineFormatRecord(short format) { AxisLineFormatRecord r = new AxisLineFormatRecord(); r.AxisType = (format); return r; }