title: How to unit test offline scenarios using XCTest
body: <p>I'm trying to perform a set of unit tests, which require different network connection statuses. How can I simulate an offline iOS device when using XCTest (in Swift)?</p>
  
  <p>Thanks</p>