M
M
Maronus2015-12-05 16:59:40
C++ / C#
Maronus, 2015-12-05 16:59:40

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

1 answer(s)
A
Artem Voronov, 2015-12-05
@Maronus

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 question

Ask a Question

731 491 924 answers to any question