public void Does_Not_Inject_Into_Anonymous_AsyncStateMashines() { var target = new TestTarget(); TestAspect.Reset(); target.AsyncMethod().GetAwaiter().GetResult(); Assert.Equal(3, TestAspect.beforeCalls + TestAspect.afterCalls + TestAspect.aroundCalls); }
public void Does_Not_Inject_Into_Anonymous_Methods() { var target = new TestTarget(); TestAspect.Reset(); target.Method(); Assert.Equal(3, TestAspect.beforeCalls + TestAspect.afterCalls + TestAspect.aroundCalls); }