public void OneOrMoreFilePath_has_implicit_conversion_from_FilePath() { OneOrMoreFilePaths target = FilePath.FromString("_config.yml"); target.Should().NotBeNull(); target.Count.Should().Be(1); target[0].FullPath.Should().Be("_config.yml"); }
/// <summary> /// Apply option from file path(s) /// </summary> /// <param name="args">The argument builder into which the settings should be written.</param> /// <param name="optionName">The option name.</param> /// <param name="optionValue">The file path(s).</param> protected void ApplyOption(ProcessArgumentBuilder args, string optionName, OneOrMoreFilePaths optionValue) { if (optionValue is null || optionValue.Count == 0) { return; } args.Append(optionName); foreach (var filePath in optionValue) { args.AppendQuoted(filePath.FullPath); } }