TechTalk.SpecFlow.ErrorHandling.ErrorProvider.GetNoMatchBecauseOfScopeFilterError C# (CSharp) Метод

GetNoMatchBecauseOfScopeFilterError() публичный Метод

public GetNoMatchBecauseOfScopeFilterError ( List matches, TechTalk.SpecFlow.Bindings.StepInstance stepInstance ) : Exception
matches List
stepInstance TechTalk.SpecFlow.Bindings.StepInstance
Результат System.Exception
        public Exception GetNoMatchBecauseOfScopeFilterError(List<BindingMatch> matches, StepInstance stepInstance)
        {
            string stepDescription = stepFormatter.GetStepDescription(stepInstance);
            return new BindingException(
                string.Format("Multiple step definitions found, but none of them have matching scope for step '{0}': {1}",
                    stepDescription,
                    string.Join(", ", matches.Select(m => GetMethodText(m.StepBinding.Method)).ToArray())));
        }