public void DoSomething() { var handWritten = new HandWritten(); var proxy = new HandWrittenProxy(handWritten, new InvocationHandler(async invocation => { await invocation.Proceed(); return(null); })); proxy.DoSomething(); Assert.IsTrue(handWritten.DoSomethingCalled); }
public void DoSomething() { var handWritten = new HandWritten(); var proxy = new HandWrittenProxy(handWritten, new InvocationHandler(async invocation => { await invocation.Proceed(); return null; })); proxy.DoSomething(); Assert.IsTrue(handWritten.DoSomethingCalled); }