Пример #1
0
        public static String[] CreateArgumentsForDelimitedTests(
      InputBuilder inputBuilder,
      DelimBuilder delimBuilder,
      String value,
      OutputBuilder outputBuilder,
      LogBuilder logBuilder)
        {
            var commandLineArgumentsBuilder = new CommandLineArgumentsBuilder();

              if (inputBuilder != null)
              {
            commandLineArgumentsBuilder = commandLineArgumentsBuilder.WithInput(inputBuilder);
              }

              if (delimBuilder != null)
              {
            commandLineArgumentsBuilder = commandLineArgumentsBuilder.WithDelim(delimBuilder);
              }

              commandLineArgumentsBuilder.WithInList(new InListBuilder()
                                              .HasValuesList(value));

              if (outputBuilder != null)
              {
            commandLineArgumentsBuilder = commandLineArgumentsBuilder.WithOutput(outputBuilder);
              }

              if (logBuilder != null)
              {
            commandLineArgumentsBuilder = commandLineArgumentsBuilder.WithLog(logBuilder);
              }

              return commandLineArgumentsBuilder.Build();
        }
Пример #2
0
 public CommandLineArgumentsBuilder WithInput(InputBuilder inputBuilder)
 {
     this.builders.Add(inputBuilder);
       return this;
 }
Пример #3
0
        public static InputBuilder CreateSingleFileInputBuilder(String singleFilePath, Boolean searchSubDirectories = false)
        {
            var inputBuilder = new InputBuilder();
              inputBuilder = inputBuilder.IsSingleFile(singleFilePath);

              return MayAddSearchSubDirectories(inputBuilder, searchSubDirectories);
        }
Пример #4
0
        private static InputBuilder MayAddSearchSubDirectories(InputBuilder inputBuilder, Boolean searchSubDirectories)
        {
            if (searchSubDirectories)
              {
            inputBuilder = inputBuilder.AndSearchSubDirectories();
              }

              return inputBuilder;
        }
Пример #5
0
        public static InputBuilder CreateMultipleFilesInputBuilder(String multipleFilesPattern, Boolean searchSubDirectories = false)
        {
            var inputBuilder = new InputBuilder();
              inputBuilder = inputBuilder.IsMultipleFiles(multipleFilesPattern);

              return MayAddSearchSubDirectories(inputBuilder, searchSubDirectories);
        }