public void TestStore() { FbiRecord record = new FbiRecord(); record.XBasis = ((short)0x1a28); record.YBasis = ((short)0x0f9c); record.HeightBasis = ((short)0xc8); record.Scale = ((short)0x00); record.IndexToFontTable = ((short)0x05); 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); }