问题
I want to test my app when it is disconnected from network (Internet connection). How to simulate the scenario in which phone doesn't have an Internet connection?
回答1:
Do the following steps:
- Go to Network tab of the emulator's Additional Tools.
- Check Enable Network Simulation to test your app with different network speeds and different signal strengths.
- In the Network Speed dropdown list, select the option: No network
- Click Refresh
来源:https://stackoverflow.com/questions/28847408/how-to-disconnect-windows-phone-8-1-emulator-from-network