public IParameter <TArgumentOptions, TArgument1> WithMultiParameter <TArgument1>(Expression <Func <TArgumentOptions, ImmutableArray <TArgument1> > > argument) { return(_currentCatagory.WithMultiParameter(argument)); }
public void ParameterCatagoryWithMultiParameterOnSamePropertyThrowArgumentException() { IParameterCatagory <MultiOptions> catagory = ArgumentParser.Create("app").CreateParameterCatagory <MultiOptions>(); Assert.Throws <ArgumentException>(() => catagory.WithMultiParameter(x => x.Boolean).WithMultiParameter(x => x.Boolean)); }