Exemple #1
0
        public void testSerialization()
        {
            Address from = new Address("VKM6KSCTDHEM6KGEAMSYCNEGIPFJMHDSEMIRAQLK76CJDIRMMDHKAIRMFQ");
            Address to   = new Address("CQW2QBBUW5AGFDXMURQBRJN2AM3OHHQWXXI4PEJXRCVTEJ3E5VBTNRTEAE");

            var tx = new Transaction(from, null, 301, 1300, null, 100,
                                     to, null, new Digest());

            var         json = Encoder.EncodeToJson(tx);
            Transaction o    = Encoder.DecodeFromJson <Transaction>(json);

            Assert.AreEqual(o, tx);
        }