Пример #1
0
        public void TestMultiChainRevokePermisions()
        {
            // Setup
            var processWrapper = new ProcessWrapper {
                Mock = true, ReplyMessage = "Blockchain test"
            };
            var chain = new MultiChain(null, processWrapper);

            // Test
            var str = chain.RevokePermisions(new GrantPermisionsData {
                Address = "Test01", Permissions = new[] { GrantPermissions.activate }, Comment = "test02", CommentTo = "test03", NativeAmount = "0.1"
            });

            // Check
            Assert.AreEqual("Blockchain test", str);
            Assert.AreEqual("/c D:\\Development\\Eigenbouw\\bc\\MultiChain\\multichain-cli.exe testchain revoke Test01", processWrapper.ProcessInfo.Arguments);
        }