4using System.Collections.Generic;
26 new OptionSpecification(
string.Empty,
"name",
false,
string.Empty,
Maybe.Nothing<
int>(),
Maybe.Nothing<
int>(),
'\0',
Maybe.Nothing<
object>(),
string.Empty,
string.Empty,
new List<string>(), typeof(IEnumerable<string>),
TargetType.Sequence,
string.Empty),
28 Maybe.Just(
new object())),
32 Assert.Empty(results);
49 new OptionSpecification(
string.Empty,
"name",
false,
string.Empty,
Maybe.Nothing<
int>(),
Maybe.Nothing<
int>(),
'\0',
Maybe.Nothing<
object>(),
string.Empty,
string.Empty,
new List<string>(), typeof(IEnumerable<string>),
TargetType.Sequence,
string.Empty),
51 Maybe.Just(
new object())),
The Maybe type models an optional value. A value of type Maybe a either contains a value of type a (r...
static SpecificationProperty Create(Specification specification, PropertyInfo property, Maybe< object > value)
static IEnumerable< Func< IEnumerable< SpecificationProperty >, IEnumerable< Error > > > Lookup(IEnumerable< Token > tokens)
static Token Value(string text)
static Token Name(string text)
Models an error generated when an option is repeated two or more times.
IEnumerable< string > StringSequence
void Lookup_allows_multi_instance()
void Lookup_fails_with_repeated_options_false_multi_instance()