public void TestByRef() { double d; double res = ClientProxy.AddByRef(out d, 1, 1); Assert.IsTrue(d == res); }
public void TestPrimitiveComplexTypeByRef() { Proxy.MonoTests.Features.Client.ComplexPrimitiveClass n1 = GetNewDataInstance(); Proxy.MonoTests.Features.Client.ComplexPrimitiveClass n2 = GetNewDataInstance(); Proxy.MonoTests.Features.Client.ComplexPrimitiveClass result = null; result = ClientProxy.AddByRef(n1, n2); Assert.IsTrue(result.byteMember == 2); Assert.IsTrue(result.sbyteMember == 2); Assert.IsTrue(result.shortMember == 2); Assert.IsTrue(result.ushortMember == 2); Assert.IsTrue(result.intMember == 2); Assert.IsTrue(result.uintMember == 2); Assert.IsTrue(result.longMember == 2); Assert.IsTrue(result.ulongMember == 2); Assert.IsTrue(result.doubleMember == 2); Assert.IsTrue(result.floatMember == 2); }