public void Handler_descriptor_describes_the_parameter_names_of_the_handler_method() { var descriptor = HandlerDescriptor.FromExpression <ClassWithInvokeAndDefaultCtor, string, int, Task <int> >((model, s, i) => model.Invoke(s, i)); descriptor.ParameterDescriptors .Select(p => p.ValueName) .Should() .BeEquivalentSequenceTo("stringParam", "intParam"); }