Пример #1
0
        public void TestBaseTypeNonSerializableParam()
        {
            TestSerializableClassCImpl arg = new TestSerializableClassCImpl();

            arg.Msg = "test";
            TestSerializableClassC result = m_testService.TestEchoSerializableC(arg);

            Assertion.AssertEquals(arg.Msg, result.Msg);
            // check method implementation called
            Assertion.AssertEquals(result.Msg, result.Format());
        }
Пример #2
0
 public TestSerializableClassC TestEchoSerializableC(TestSerializableClassC arg) {
     return arg;
 }
Пример #3
0
 public TestSerializableClassC TestEchoSerializableC(TestSerializableClassC arg)
 {
     return(arg);
 }
Пример #4
0
 public void TestBaseTypeNonSerializableParam() {
     TestSerializableClassC arg = new TestSerializableClassC();
     arg.Msg = "test";
     TestSerializableClassC result = m_testService.TestEchoSerializableC(arg);
     Assert.AreEqual(arg.Msg, result.Msg);
 }
Пример #5
0
 public void TestNonSerilizableFormalParam() {
     TestNonSerializableBaseClass arg = new TestSerializableClassC();
     TestNonSerializableBaseClass result = m_testService.TestAbstractValueTypeEcho(arg);
     Assert.AreEqual(typeof(TestSerializableClassC), result.GetType());
 }