Example #1
0
        public override Object Clone()
        {
            UnitsRecord rec = new UnitsRecord();

            rec.field_1_units = field_1_units;
            return(rec);
        }
Example #2
0
        public void TestLoad()
        {

            UnitsRecord record = new UnitsRecord(TestcaseRecordInputStream.Create((short)0x1001, data));
            Assert.AreEqual(0, record.Units);


            Assert.AreEqual(6, record.RecordSize);
        }
Example #3
0
        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);
        }
Example #4
0
 private UnitsRecord CreateUnitsRecord()
 {
     UnitsRecord r = new UnitsRecord();
     r.Units = ((short)0);
     return r;
 }
Example #5
0
        public override Object Clone()
        {
            UnitsRecord rec = new UnitsRecord();

            rec.field_1_units = field_1_units;
            return rec;
        }