示例#1
0
        public void TestOctetOfOctetArrayAsAny()
        {
            byte[][] arg = new byte[2][];
            arg[0] = new byte[] { 1 };
            arg[1] = new byte[] { 2 };

            byte[][] result = (byte[][])m_testService.EchoAny(arg);
            Assert.IsNotNull(result);
            Assert.AreEqual(arg.Length, result.Length);
            Assert.AreEqual(arg[0].Length, result[0].Length);
            Assert.AreEqual(arg[1].Length, result[1].Length);
            Assert.AreEqual(arg[0][0], result[0][0]);
            Assert.AreEqual(arg[1][0], result[1][0]);

            byte[][] result2 = m_testService.ExtractFromOctetOfOctetSeqAny(arg);
            Assert.IsNotNull(result2);
            Assert.AreEqual(arg.Length, result2.Length);
            Assert.AreEqual(arg[0].Length, result2[0].Length);
            Assert.AreEqual(arg[1].Length, result2[1].Length);
            Assert.AreEqual(arg[0][0], result2[0][0]);
            Assert.AreEqual(arg[1][0], result2[1][0]);
        }