public static string ToTestArguments(IPrepareArgs p, ICollectArgs c, ICLIArg force) { return(DotNet.ToTestArguments(p.ToParameters(), c.ToParameters(), ToCLIArgs(force))); }
public static string[] ToTestArgumentList(IPrepareArgs p, ICollectArgs c, ICLIArg force) { return(DotNet.ToTestArgumentList(p.ToParameters(), c.ToParameters(), ToCLIArgs(force)). ToArray()); }
private static DotNet.CLIArgs ToCLIArgs(ICLIArg args) { var force = DotNet.CLIArgs.NewForce(args.Force); switch (args) { case ICLIArg3 args3: var failfast3 = DotNet.CLIArgs.NewFailFast(args3.FailFast); var showsummary = DotNet.CLIArgs.NewShowSummary(args3.ShowSummary); return(DotNet.CLIArgs.NewMany(new[] { force, failfast3, showsummary })); case ICLIArg2 args2: var failfast = DotNet.CLIArgs.NewFailFast(args2.FailFast); return(DotNet.CLIArgs.NewMany(new[] { force, failfast })); default: return(force); } }