Ejemplo n.º 1
0
        public void TestSerializedIn64_Object(object val, string hex)
        {
            var so  = new Serializer();
            var sti = new SerializedInt64() as ISerializedType;

            sti.Serialize(so, val);
            Assert.AreEqual(hex, so.ToHex());
        }
Ejemplo n.º 2
0
        public void TestSerializedInt64(ulong val, string hex)
        {
            var so = new Serializer();
            var st = new SerializedInt64();

            st.Serialize(so, val);
            Assert.AreEqual(hex, so.ToHex());

            so = new Serializer();
            var sti = st as ISerializedType;

            sti.Serialize(so, val);
            Assert.AreEqual(hex, so.ToHex());
        }