Ejemplo n.º 1
0
        public void BinarySerializationTest()
        {
            Hashtable table = new Hashtable();

            EntryCollection <EventEntry> entries = new EntryCollection <EventEntry>();

            table.Add("Test", entries);

            byte[] serialized = GwApiNET.BinarySerializer.BinarySerialize(table);

            Hashtable table2 = BinarySerializer.BinaryDeserialize <Hashtable>(serialized);

            Assert.AreEqual(table.Count, table2.Count);
        }