I just need this network disconnected. What I did was call through C # the DOS NETSH command, which assigns a nonexistent gateway to my test PC, thus disconnecting or reducing the network connection, running the test case, and then returning it to the original one to enable the connection again. Thanks for the answers ..: D
source
share