Example #1
0
        private void GoGetTheXapUnderTest(Uri xapToTestUri)
        {
            Server.Debug("GoGetTheXapUnderTest");
            var client = new WebClient
            {
                AllowReadStreamBuffering = true
            };

            client.OpenReadCompleted += (sender, e) =>
            {
                Server.Debug("OnXapToTestDownloaded");
                if (e.Error == null)
                {
                    var loadedXapData = new LoadedXapData(e.Result);

                    TestRunnerHost.ConfigureWithLoadedXapData(loadedXapData);

                    CompletedTestXapRequest = true;
                    DisplayTestHarness();
                }
                else
                {
                    Server.LogException(e.Error);
                }
            };
            Server.Debug("OpenReadAsync(" + xapToTestUri + ")");
            client.OpenReadAsync(xapToTestUri);
        }
        protected override void OnTestRunConfigurationDownloaded(ClientTestRunConfiguration clientTestRunConfiguration)
        {
            ILoadedXapData loadedXapData = new CurrentXapData(_assemblyToTest);

            TestRunnerHost.ConfigureWithLoadedXapData(loadedXapData);
            CompletedTestXapRequest = true;
            DisplayTestHarness();
        }
Example #3
0
        protected override void OnTestRunConfigurationDownloaded(ClientTestRunConfiguration clientTestRunConfiguration)
        {
            var loadedXapData = new ThisXapData(clientTestRunConfiguration.EntryPointAssembly);

            Server.Debug("OnTestRunConfigurationDownloaded");
            TestRunnerHost.ConfigureWithLoadedXapData(loadedXapData);

            CompletedTestXapRequest = true;
            DisplayTestHarness();
        }