コード例 #1
0
        public void TestInnerClassSerializable()
        {
            TestSerWithInner__AnInnerClass inner = new TestSerWithInner__AnInnerClassImpl();
            TestSerWithInner arg = new TestSerWithInnerImpl();

            arg.Field1 = inner;

            TestSerWithInner result = m_testService.TestEchoWithInner(arg);

            Assertion.AssertNotNull(result);
            Assertion.AssertNotNull(result.Field1);
            Assertion.AssertEquals(arg.Field1.InnerField1, result.Field1.InnerField1);
            Assertion.AssertEquals(arg.Field1.InnerField2, result.Field1.InnerField2);
        }
コード例 #2
0
 public void TestInnerClassSerializable() {
    TestSerWithInner__AnInnerClass inner = new TestSerWithInner__AnInnerClassImpl();
    TestSerWithInner arg = new TestSerWithInnerImpl();
    arg.Field1 = inner;
    
    TestSerWithInner result = m_testService.TestEchoWithInner(arg);
    Assertion.AssertNotNull(result);
    Assertion.AssertNotNull(result.Field1);
    Assertion.AssertEquals(arg.Field1.InnerField1,  result.Field1.InnerField1);
    Assertion.AssertEquals(arg.Field1.InnerField2,  result.Field1.InnerField2);
 }