         return value
     }
 }
+
+class CustomControlNil: UIView, Validatable {
+    var returnNil: Bool = true
+    
+    func getValue() -> Any? {
+        return returnNil ? nil : "not nil value"
+    }
+}

        super.tearDown()
    }
    
    
    func testValidator0() {
        vc.addValidatorEqualTo(toControl: textField1, errorPlaceholder: placeholder, errorMessage: "ERROR", compareWithControl: textField2)

        XCTAssertFalse(vc.validate(), "Fields are not equal")
    }

    
    func testValidator5() {
        let alwaysNil1 = CustomControlNil()
        let alwaysNil2 = CustomControlNil()
        vc.addValidatorEqualTo(toControl: alwaysNil1, errorPlaceholder: placeholder, errorMessage: "ERROR", compareWithControl: alwaysNil2)
        
        XCTAssert(vc.validate(), "Fields are not equal")
        
        alwaysNil1.returnNil = false
        XCTAssertFalse(vc.validate(), "Fields are equal")
        
        alwaysNil1.returnNil = true
        alwaysNil2.returnNil = false
        XCTAssertFalse(vc.validate(), "Fields are equal")
    }
    
    
    func testCondition0() {
