Exemplo n.º 1
0
        public void TestMultiChainImportPrivateKey()
        {
            // Setup
            var processWrapper = new ProcessWrapper {
                Mock = true, ReplyMessage = "Blockchain test"
            };
            var chain = new MultiChain(null, processWrapper);

            // Test
            var str = chain.ImportPrivateKey("A1B2C3E4F5");

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