public void TestRemoteObjects() { Adder adder = m_testService.RetrieveAdder(); System.Int32 arg1 = 1; System.Int32 arg2 = 2; System.Int32 result = adder.Add(1, 2); Assertion.AssertEquals((System.Int32)arg1 + arg2, result); }
private void CallWithCreateObject(TestService serviceToUse) { Adder adder = serviceToUse.RetrieveAdder(); System.Int32 arg1 = m_random.Next(100); System.Int32 arg2 = m_random.Next(100); System.Int32 result = adder.Add(arg1, arg2); Assertion.AssertEquals((System.Int32)arg1 + arg2, result); }
public System.Int32 AddWithAdder(Adder adder, System.Int32 sum1, System.Int32 sum2) { return adder.Add(sum1, sum2); }
public System.Int32 AddWithAdder(Adder adder, System.Int32 sum1, System.Int32 sum2) { return(adder.Add(sum1, sum2)); }