public void OneOrMoreFilePath_has_implicit_conversion_from_string() { OneOrMoreStrings target = "Hello"; target.Should().NotBeNull(); target.Count.Should().Be(1); target[0].Should().Be("Hello"); }
/// <summary> /// Apply option from one or more string values /// </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 string value(s).</param> protected void ApplyOption(ProcessArgumentBuilder args, string optionName, OneOrMoreStrings optionValue) { if (optionValue is null || optionValue.Count == 0) { return; } args.Append(optionName); foreach (var value in optionValue) { args.AppendQuoted(value); } }