public BindingMatch(StepBinding stepBinding, Match match, object[] extraArguments, StepArgs stepArgs) { StepBinding = stepBinding; Match = match; ExtraArguments = extraArguments; StepArgs = stepArgs; }
private BindingMatch Match(StepBinding stepBinding, StepArgs stepArgs) { Match match = stepBinding.Regex.Match(stepArgs.Text); if (!match.Success) return null; object[] extraArgs = null; if (stepArgs.MultilineTextArgument != null || stepArgs.TableArgument != null) { List<object> extraArgsList = new List<object>(); if (stepArgs.MultilineTextArgument != null) extraArgsList.Add(stepArgs.MultilineTextArgument); if (stepArgs.TableArgument != null) extraArgsList.Add(stepArgs.TableArgument); extraArgs = extraArgsList.ToArray(); } return new BindingMatch(stepBinding, match, extraArgs, stepArgs); }