Exemple #1
0
        public void TestFromJson()
        {
            var json = new JObject();

            json["asset_hash"]         = "0000000000000000000000000000000000000000";
            json["amount"]             = "0";
            json["last_updated_block"] = "0";
            var rpcNep5Balance = RpcNep5Balance.FromJson(json);

            rpcNep5Balance.AssetHash.Should().Be(UInt160.Zero);
            rpcNep5Balance.Amount.Should().Be(BigInteger.Zero);
            rpcNep5Balance.LastUpdatedBlock.Should().Be(0);
        }
Exemple #2
0
 public void Setup()
 {
     balance = new RpcNep5Balance();
 }