コード例 #1
0
        public void TestMultiChainGetValidStringdata()
        {
            // Setup
            var processWrapper = new ProcessWrapper {
                Mock = true, ReplyMessage = "Test"
            };
            var chain = new MultiChain(null, processWrapper);

            // Test
            var data = chain.GetValidStringdata("Test");

            // Check
            Assert.AreEqual("\"Test\"", data);

            // Test
            data = chain.GetValidStringdata(null);

            // Check
            Assert.AreEqual("", data);
        }