public void RemotingRefInt() { int i = 0; remotingTarget.RefInt(ref i); LastCall.Do(new RefIntDel(RefFive)); mocks.ReplayAll(); remotingTarget.RefInt(ref i); Assert.Equal(5, i); }
public void RemotingRefInt() { int i = 0; remotingTarget.Expect(x => x.RefInt(ref i)) .DoInstead(new RefIntDel(RefFive)); remotingTarget.RefInt(ref i); Assert.Equal(5, i); }