Answer the question
In order to leave comments, you need to log in
How to test a method that depends on the Internet settings on the device?
There is a method, the operation of which depends on the Internet settings on the device.
How can such a method be tested using NUnit in a Windows Store app?
In which direction to dig?
Answer the question
In order to leave comments, you need to log in
Just like in all other cases: select an interface to get the settings and then substitute them in the unit test through the mock.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question