public void DefineDelegate6() { var lamdaExpression = Helper.GetLamdaExpression("DelegateTestClass", "DefineDelegate6"); var del = lamdaExpression.Compile(); var instance = new DelegateTestClass(); del.DynamicInvoke(instance); Tracker.LastValue.Should().Be("hello"); }
public async Task DefineDelegate8() { var lamdaExpression = Helper.GetLamdaExpression("DelegateTestClass", "DefineDelegate8"); var del = lamdaExpression.Compile(); var instance = new DelegateTestClass(); await(Task) del.DynamicInvoke(instance); Tracker.LastValue.Should().Be("hello"); }