public void Can_call_target__method_with_ref_argument() { var target = new WithRefOutAndEmpty(); var proxy = GetProxy <IWithRefOut>(target); var result = 2; proxy.Did(ref result); Assert.AreEqual(5, result); }
public void Can_call_target__method_with_out_argument() { var target = new WithRefOutAndEmpty(); var proxy = GetProxy <IWithRefOut>(target); int result; proxy.Do(out result); Assert.AreEqual(5, result); }