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

            Assert.AreEqual(5, record.FormatIndex);


            Assert.AreEqual(6, record.RecordSize);
        }
Exemplo n.º 2
0
        public void TestLoad()
        {

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


            Assert.AreEqual(6, record.RecordSize);

        }
Exemplo n.º 3
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);
        }
Exemplo n.º 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);
            }
        }