public static String[] CreateArgumentsForDelimitedTests( String inputFilePath, String headerLineID, String termLineID, String value, String matchedOutputFilePath, String unmatchedOutputFilePath, LogBuilder logBuilder) { var commandLineArgumentsBuilder = new CommandLineArgumentsBuilder() .WithInput(new InputBuilder() .IsSingleFile(inputFilePath)) .WithDelim(new DelimBuilder() .HasHeaderLineID(headerLineID) .HasTermLineID(termLineID)) .WithInList(new InListBuilder() .HasValuesList(value)) .WithOutput(new OutputBuilder() .HasMatchedOutputFile(matchedOutputFilePath) .HasUnmatchedOutputFile(unmatchedOutputFilePath)); if (logBuilder != null) { commandLineArgumentsBuilder = commandLineArgumentsBuilder.WithLog(logBuilder); } return commandLineArgumentsBuilder.Build(); }
public static String[] CreateArgumentsForDelimitedTests( InputBuilder inputBuilder, String headerLineID, String termLineID, String value, OutputBuilder outputBuilder, LogBuilder logBuilder) { var commandLineArgumentsBuilder = new CommandLineArgumentsBuilder(); if (inputBuilder != null) { commandLineArgumentsBuilder = commandLineArgumentsBuilder.WithInput(inputBuilder); } commandLineArgumentsBuilder.WithDelim(new DelimBuilder() .HasHeaderLineID(headerLineID) .HasTermLineID(termLineID)); commandLineArgumentsBuilder.WithInList(new InListBuilder() .HasValuesList(value)); if (outputBuilder != null) { commandLineArgumentsBuilder = commandLineArgumentsBuilder.WithOutput(outputBuilder); } if (logBuilder != null) { commandLineArgumentsBuilder = commandLineArgumentsBuilder.WithLog(logBuilder); } return commandLineArgumentsBuilder.Build(); }