public void TestTypeOfValueTypePassed() { TestSerializableClassB2Impl arg = new TestSerializableClassB2Impl(); arg.Msg = "msg"; TestSerializableClassB2 result = m_test.TestChangeSerializableB2(arg, arg.DetailedMsg); Assertion.AssertEquals(result.Msg, arg.Msg); }
public void TestValueTypeInheritance() { TestSerializableClassB2 arg = new TestSerializableClassB2Impl(); arg.Msg = "msg"; System.String newDetail = "new detail"; TestSerializableClassB2 result = m_test.TestChangeSerializableB2(arg, newDetail); Assertion.AssertEquals(newDetail, result.DetailedMsg); Assertion.AssertEquals(arg.Msg, result.Msg); }