vendredi 6 février 2015

Simulate network connection for Xcode unit testing? (possibly related to my use of AFNetworking)

I'm trying to perform a set of unit tests, which require different network connection statuses. Short of the user having to perform a bunch of steps along the way, I was wondering if there was a way to simulate conditions under a certain network connection.


I'm using AFNetworkConnectionManager to check the connection status, but it's networkConnectionStatus is a readonly property.


Aucun commentaire:

Enregistrer un commentaire