示例#1
0
        public void TestStructContainingArray()
        {
            BlobData arg = new BlobData();

            arg.ident = 1;
            arg.data  = new int[] { 1, 2, 3 };
            BlobData result = m_testService.EchoBlobData(arg);

            Assert.AreEqual(arg.ident, result.ident);
            Assert.AreEqual(arg.data.Length, result.data.Length);
            for (int i = 0; i < arg.data.Length; i++)
            {
                Assert.AreEqual(arg.data[i], result.data[i]);
            }
        }