Пример #1
0
        public void FromScopedExpression_HandlesGenericMethods()
        {
            CommandDispatcher dispatcher = new CommandDispatcher();
            var job = Job.FromExpression(() => dispatcher.DispatchTyped(123));

            Assert.Equal(typeof(CommandDispatcher), job.Type);
            Assert.Equal(typeof(CommandDispatcher), job.Method.DeclaringType);
        }