title: How can I simulate an offline iOS device when using XCTest (in Swift)
body: <p>How would I go about simulating an offline iOS device using XCTest (in Swift preferably) i.e. I have code which posts to CoreData and also does a HTTP post with some JSON data and I want to ensure that conditional logic works correctly when no internet connection is available.</p>