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