UIViewController & Unit Test

Hi darthpelo, usually, I declare IBOulets inside my view controller as private so that and only expose methods/properties to other classes to access if needed. And this is prevent me to test my IBOulet value after an action. Let’s say when I click on a button, I expect a label will changes its text to “Button Clicked”. Is there an elegant way to unit test private IBOutlet in a view controller?

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.