public void ValidAnd() { RuleAssert.For(MaybeIs.ValidAnd(StringIs.WithoutUppercase)) .ExpectNone("lowercase") .ExpectError(null, Maybe.String, "Uppercase"); }
public void EmptyOr() { RuleAssert.For(MaybeIs.EmptyOr(StringIs.WithoutUppercase)) .ExpectNone(Maybe <string> .Empty, "lowercase") .ExpectError(null, "UpperCase"); }