public void TestStore() { PaneRecord record = new PaneRecord(); record.X = ((short)1); record.Y = ((short)2); record.TopRow = ((short)3); record.LeftColumn = ((short)4); record.ActivePane = (PaneRecord.ACTIVE_PANE_LOWER_LEFT); 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); } }