Example #1
0
        public void TestGetMaxTransactionsPerBlock()
        {
            byte[] testScript = NativeContract.Policy.Hash.MakeScript("getMaxTransactionsPerBlock");
            UT_TransactionManager.MockInvokeScript(rpcClientMock, testScript, new ContractParameter {
                Type = ContractParameterType.Integer, Value = new BigInteger(512)
            });

            var result = policyAPI.GetMaxTransactionsPerBlock();

            Assert.AreEqual(512u, result);
        }