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

            // Test
            var str = chain.VerifyMessage(new MessageData {
                address = "1234", signature = "A1B2C3E4F5", message = "Test01"
            });

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