public NUnitManagedTestRunner(TestDirectory testDirectory, string testAssemblyLocation, IEnumerable <string> testsToRun) { var testAssemblyMutantLocation = Path.Combine(testDirectory.FullName, Path.GetFileName(testAssemblyLocation)); _testDirectory = testDirectory; _testAssemblyLocation = testAssemblyMutantLocation; _testsToRun = testsToRun.ToArray(); _task = new Task(DoTests); _remoteTestRunner = new RemoteTestRunner(); ExitCode = -1; }
public void Start() { // MS ignores all proxy request for local connections. IPAddress address = TestRunner.GetAddress(); if (IPAddress.IsLoopback(address)) { noNetwork = true; return; } simpleRunner = new ProxyTestRunner(address, 9999, 9998); authRunner = new ProxyTestRunner(address, 9997, 9996) { AuthenticationType = AuthenticationType.Basic, Credentials = new NetworkCredential("xamarin", "monkey") }; #if ALPHA ntlmAuthRunner = new ProxyTestRunner(address, 9995, 9994) { AuthenticationType = AuthenticationType.NTLM, Credentials = new NetworkCredential("xamarin", "monkey") }; ntlmAuthRunner.Start(); unauthRunner = new ProxyTestRunner(address, 9993, 9992) { AuthenticationType = AuthenticationType.Basic }; unauthRunner.Start(); sslRunner = new ProxyTestRunner(address, 9991, 9990) { UseSSL = true }; sslRunner.Start(); #endif simpleRunner.Start(); authRunner.Start(); }