Ejemplo n.º 1
0
        public void LongStringReturnsFalse()
        {
            var rule      = new StringLengthRule(2);
            var candidate = rule.IsValid("valid");

            Assert.IsFalse(candidate);
        }
Ejemplo n.º 2
0
        public void ShortStringReturnsTrue()
        {
            var rule      = new StringLengthRule(20);
            var candidate = rule.IsValid("valid");

            Assert.IsTrue(candidate);
        }
 public void ShortStringReturnsTrue()
 {
     var rule = new StringLengthRule(20);
     var candidate = rule.IsValid("valid");
     Assert.IsTrue(candidate);
 }
 public void LongStringReturnsFalse()
 {
     var rule = new StringLengthRule(2);
     var candidate = rule.IsValid("valid");
     Assert.IsFalse(candidate);
 }