Exemplo n.º 1
0
        private void AssertSerialization <T>() where T : ISignature
        {
            var     sig    = AbstractFactory.Get <INetworkTypeFactory>().GetNew <T>();
            BMSByte buffer = new BMSByte();

            sig.Serialize(buffer);
            buffer.ResetPointer();
            var sigRes = AbstractFactory.Get <INetworkTypeFactory>().GetNew <T>();

            sigRes.Deserialize(buffer);
            Assert.AreEqual(sig, sigRes);
        }