public void OneOrMoreDirectoryPath_has_implicit_conversion_from_DirectoryPath() { OneOrMoreDirectoryPaths target = DirectoryPath.FromString("folder"); target.Should().NotBeNull(); target.Count.Should().Be(1); target[0].FullPath.Should().Be("folder"); }
/// <summary> /// Apply option from directory 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 directory path(s).</param> protected void ApplyOption(ProcessArgumentBuilder args, string optionName, OneOrMoreDirectoryPaths optionValue) { if (optionValue is null || optionValue.Count == 0) { return; } args.Append(optionName); foreach (var filePath in optionValue) { args.AppendQuoted(filePath.FullPath); } }