public void TestRecursiveValueTypeInstance() { TestSerializableClassE arg = new TestSerializableClassEImpl(); arg.RecArrEntry = new TestSerializableClassE[1]; arg.RecArrEntry[0] = arg; TestSerializableClassE result = m_testService.TestEchoSerializableE(arg); Assertion.AssertNotNull(result); Assertion.AssertNotNull(result.RecArrEntry); Assertion.AssertEquals(arg.RecArrEntry.Length, result.RecArrEntry.Length); Assertion.Assert("invalid entry in recArrEntry", (result == result.RecArrEntry[0])); }
public void TestRecursiveValueType() { TestSerializableClassE arg = new TestSerializableClassEImpl(); arg.RecArrEntry = new TestSerializableClassE[1]; arg.RecArrEntry[0] = arg; TestSerializableClassE result = m_testService.TestEchoSerializableE(arg); Assertion.AssertNotNull(result); Assertion.AssertNotNull(result.RecArrEntry); Assertion.AssertEquals(arg.RecArrEntry.Length, result.RecArrEntry.Length); Assertion.Assert("invalid entry in recArrEntry", (result == result.RecArrEntry[0])); }