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