Ejemplo n.º 1
0
        public void TestStaticEventInvoke()
        {
            var lamdaExpression = Helper.GetLamdaExpression("EventTestClass", "TestStaticEventInvoke");

            var del = lamdaExpression.Compile();

            var instance = new EventTestClass();

            del.DynamicInvoke(instance);

            Tracker.LastValue.Should().Be("hello");
        }
Ejemplo n.º 2
0
        public void RemoveEventHandler4()
        {
            var lamdaExpression = Helper.GetLamdaExpression("EventTestClass", "RemoveEventHandler4");

            var del = lamdaExpression.Compile();

            var instance = new EventTestClass();

            del.DynamicInvoke(instance);

            Tracker.LastValue.Should().Be("hello1");
        }