Ejemplo n.º 1
0
 public void EntityWithPropertyRequirementsNotMetButCustomValidationRulesMetMustBeInvalid()
 {
     CustomValidateEntity entity = new CustomValidateEntity();
     entity.Name = "TestEntity";
     bool result = entity.IsValid;
     Assert.IsFalse(result);
 }
Ejemplo n.º 2
0
 public void EntityWithCustomValidationRulesNotMetMustBeInvalid()
 {
     CustomValidateEntity entity = new CustomValidateEntity();
     entity.Number = 1;
     entity.Name = "Just another entity";
     bool result = entity.IsValid;
     Assert.IsFalse(result);
 }
Ejemplo n.º 3
0
 public void EntityWithCustomValidationRulesMetMustBeValid()
 {
     CustomValidateEntity entity = new CustomValidateEntity();
     entity.Number = 1;
     entity.Name = "TestEntity";
     bool result = entity.IsValid;
     Assert.IsTrue(result);
 }