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"); }
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"); }