4using System.Collections.Generic;
18 var expected =
Maybe.Just(
".");
20 false,
string.Empty,
Maybe.Nothing<
int>(),
Maybe.Nothing<
int>(),
'.',
null,
string.Empty,
string.Empty,
new List<string>(), typeof(IEnumerable<string>),
TargetType.Sequence,
string.Empty)};
25 expected.Should().BeEquivalentTo(result);
33 const string ShortName =
"s";
34 const string LongName =
"long";
37 var expected =
new NameInfo(ShortName, LongName);
38 var spec =
new OptionSpecification(ShortName, LongName,
false,
string.Empty,
Maybe.Nothing<
int>(),
Maybe.Nothing<
int>(),
'.',
null,
string.Empty,
string.Empty,
new List<string>(), typeof(IEnumerable<string>),
TargetType.Sequence,
string.Empty);
41 var result = spec.FromOptionSpecification();
44 expected.Should().BeEquivalentTo(result);
The Maybe type models an optional value. A value of type Maybe a either contains a value of type a (r...
static Maybe< char > HavingSeparator(string name, IEnumerable< OptionSpecification > specifications, StringComparer comparer)
Models name information, used in CommandLine.Error instances.
void Get_name_from_option_specification()
void Lookup_name_of_sequence_option_with_separator()