private string GetSuggestion(ProtoStepValue stepValue) { var name = stepValue.StepValue.ToValidCSharpIdentifier(); return("\t\t[Step(\"" + stepValue.ParameterizedStepValue + "\")]\n" + "\t\tpublic void " + name + "(" + GetParamsList(stepValue.Parameters) + ")\n" + "\t\t{\n\t\t\tthrow new NotImplementedException();\n\t\t}\n"); }
private GaugeMethod GetGaugeMethod(ProtoStepValue stepValue) { if (_stepRegistry.HasMultipleImplementations(stepValue.StepValue)) { throw new Exception(string.Format("Multiple step implementations found for : {0}", stepValue.ParameterizedStepValue)); } return(_stepRegistry.MethodFor(stepValue.StepValue)); }