1458279 Suspended Original poster Jan 8, 2016 #1 Is there a way in Xcode to test a program and have all the optionals not unwrap? It seems that some optionals will be hit or miss, how do you test all the optionals in a program so you can account for all the nil conditions in an automated way?
Is there a way in Xcode to test a program and have all the optionals not unwrap? It seems that some optionals will be hit or miss, how do you test all the optionals in a program so you can account for all the nil conditions in an automated way?
PhoneyDeveloper macrumors 68040 Jan 11, 2016 #2 Presumably you have to mock the methods that could return nils. Don't really know how to do that though.
Presumably you have to mock the methods that could return nils. Don't really know how to do that though.