can we check the validation of uitextfield while Unit Testing?
Suppose we have some validation in our ViewController ( say vc1 ) for a UItextfield in shouldChangeCharactersInRange method, as user only can enter the numbers not the alphabets or other special character. I just want to know that in our XCTestCase class, is this possible in unit testing, to check for a particular uitextfield , is allowing some characters (in my case only numbers) or not? Make unit tests that call shouldChangeCharactersInRange and check the expectation that the result should be true, or false. This is an example of how to unit test delegate methods. Where UIKit invokes a