DoSomething() 공개 메소드

public DoSomething ( ) : void
리턴 void
예제 #1
0
        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);
        }
예제 #2
0
 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);
 }