public override Object Clone() { UnitsRecord rec = new UnitsRecord(); rec.field_1_units = field_1_units; return(rec); }
public void TestLoad() { UnitsRecord record = new UnitsRecord(TestcaseRecordInputStream.Create((short)0x1001, data)); Assert.AreEqual(0, record.Units); Assert.AreEqual(6, record.RecordSize); }
public void TestStore() { UnitsRecord record = new UnitsRecord(); record.Units = ((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); }
private UnitsRecord CreateUnitsRecord() { UnitsRecord r = new UnitsRecord(); r.Units = ((short)0); return r; }
public override Object Clone() { UnitsRecord rec = new UnitsRecord(); rec.field_1_units = field_1_units; return rec; }