Пример #1
0
        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");
        }
Пример #2
0
 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));
 }