public static StepMethodInfo FromMethodInfo(MethodInfo methodInfo, object instance) { 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, instance)); }
public override bool IsSameAs(StepMethodArgument other) { return(other is PrimitiveTypeArgument otherPrimitive ? otherPrimitive._index == _index : false); }
public override bool IsSameAs(StepMethodArgument other) { return(other is DocStringArgument); }
public override bool IsSameAs(StepMethodArgument other) { return(other is DataTableArgument); }
public abstract bool IsSameAs(StepMethodArgument other);