public void JSONSerDeSerTest() { var tx = TransactionApi.CreateTransaction(_address, 1, "This is first transaction from SMARTHOLDEM-NET", _passPhrase); var json = tx.ToJson(); Console.WriteLine(json); var tx2 = TransactionApi.FromJson(json); Assert.AreEqual(json, tx2.ToJson()); }
public void JSONSerDeSerTest() { var tx = TransactionApi.CreateTransaction("AXoXnFi4z1Z6aFvjEYkDVCtBGW2PaRiM25", 133380000000, "This is first transaction from ARK-NET", "this is a top secret passphrase", "this is a top secret second passphrase"); var json = tx.ToJson(); Console.WriteLine(json); var tx2 = TransactionApi.FromJson(json); Assert.AreEqual(json, tx2.ToJson()); }
public void JSONSerDeSerNegTest() { var tx = TransactionApi.CreateTransaction(_address, 1, "This is first transaction from ARK-NET", _passPhrase); var json = tx.ToJson(); Console.WriteLine(json); var tx2 = TransactionApi.FromJson(json); tx2.SignSignature = "Change"; Assert.AreNotEqual(json, tx2.ToJson()); }