예제 #1
0
        public static StepMethodInfo FromMethodInfo(MethodInfo methodInfo, Feature featureInstance)
        {
            if (methodInfo == null)
            {
                throw new ArgumentNullException(nameof(methodInfo));
            }

            var stepDefinitionAttribute = methodInfo.GetCustomAttributes <BaseStepDefinitionAttribute>();

            return(new StepMethodInfo(
                       ScenarioStepPattern.ListFromStepAttributes(stepDefinitionAttribute),
                       StepMethodArgument.ListFromMethodInfo(methodInfo),
                       new MethodInfoWrapper(methodInfo, featureInstance)));
        }
예제 #2
0
 public abstract bool IsSameAs(StepMethodArgument other);
 public override bool IsSameAs(StepMethodArgument other)
 {
     return(other is DataTableArgument);
 }
예제 #4
0
 public override bool IsSameAs(StepMethodArgument other)
 {
     return(other is PrimitiveTypeArgument otherPrimitive
         ? otherPrimitive._index == _index
         : false);
 }
예제 #5
0
 public override bool IsSameAs(StepMethodArgument other)
 {
     return(other is DocStringArgument);
 }