コード例 #1
0
        public object[] GetParametersForStep(StringStep stringStep)
        {
            var action = actionCatalog.GetAction(stringStep);

            object[] parametersForStep;
            if (IsListStep(action, stringStep))
                parametersForStep = GetParametersForListStep(action, stringStep);
            else
                parametersForStep = GetParametersForStep(stringStep, action);
            AddDocStringParameter(parametersForStep, stringStep);
            return parametersForStep;
        }
コード例 #2
0
ファイル: StringStepRunner.cs プロジェクト: wmadzha/NBehave
        private void RunStep(StringStep actionStep)
        {
            var info = ActionCatalog.GetAction(actionStep);

            if (actionStep is StringTableStep && !ShouldForEachOverStep(info))
            {
                ForEachOverStep(actionStep as StringTableStep, info);
            }
            else
            {
                RunStep(info, () => ParameterConverter.GetParametersForStep(actionStep));
            }
        }