Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }