Example #1
0
        public void TestLoad()
        {
            NumberFormatIndexRecord record = new NumberFormatIndexRecord(TestcaseRecordInputStream.Create((short)0x104e, data));

            Assert.AreEqual(5, record.FormatIndex);


            Assert.AreEqual(6, record.RecordSize);
        }
        public void TestLoad()
        {

            NumberFormatIndexRecord record = new NumberFormatIndexRecord(TestcaseRecordInputStream.Create((short)0x104e, data));
            Assert.AreEqual(5, record.FormatIndex);


            Assert.AreEqual(6, record.RecordSize);

        }
        public void TestStore()
        {
            NumberFormatIndexRecord record = new NumberFormatIndexRecord();
            record.FormatIndex = ((short)5);


            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
        public void TestStore()
        {
            NumberFormatIndexRecord record = new NumberFormatIndexRecord();

            record.FormatIndex = ((short)5);


            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);
            }
        }