     
     
     func testCondition2() {
-        let validator4 = Validator(control: UITextField(), predicate: { (param1, param2) -> Bool in
-            return false
-        }, predicateParameters: [], errorPlaceholder: nil, errorMessage: "")
+        let validator4 = Validator(control: UITextField(), predicate: validatorPredicateFalse, predicateParameters: [], errorPlaceholder: nil, errorMessage: "")
         
         vc.add(validator: validator4, condition: { () -> Bool in
             return false

    

    func testFirstFailed0() {
        let validator1 = Validator(control: UITextField(), predicate: { (param1, param2) -> Bool in
            return false
        }, predicateParameters: [], errorPlaceholder: nil, errorMessage: "")
        vc.add(validator: validator1)
        
        XCTAssertNil(vc.firstFailedControl, "A not validated form has already a failed control")

class ValidatorVCTests: XCTestCase {
    var vc: ValidatorViewController!
    
    let validatorPredicateTrue: ValidatorPredicate = { (param1, param2) -> Bool in
        return true
    }
    
    let validatorPredicateFalse: ValidatorPredicate = { (param1, param2) -> Bool in
        return false
    }
    
    override func setUp() {
        super.setUp()
