Beispiel #1
0
        public void TestMultiChainPublishMessageFrom()
        {
            // Setup
            var processWrapper = new ProcessWrapper {
                Mock = true, ReplyMessage = "Blockchain test"
            };
            var chain = new MultiChain(null, processWrapper);

            // Test
            var str = chain.PublishMessageFrom(new PublishMessageData {
                Key = "KEY01", FromAddress = "V3d45S", HexString = "A1B2C3E4F5", StreamName = "Test01"
            });

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