private void OnReadySetupRootVisual(Action <UIElement> onReady) { if (onReady == null) { throw new ArgumentNullException("onReady"); } OnReady = onReady; _remotelyHostedTestRunnerHost = LocateService <IRemotelyHostedTestRunnerHost>(); if (_remotelyHostedTestRunnerHost != null) { var assemblies = new List <Assembly> { Assembly.GetCallingAssembly() }; var rootVisual = _remotelyHostedTestRunnerHost.StartRun(assemblies); OnReady(rootVisual); } else { throw new StatLightException("Could not locate the StatLight IRemotelyHostedTestRunnerHost"); } }
private void OnReadySetupRootVisual(Action<UIElement> onReady) { if (onReady == null) throw new ArgumentNullException("onReady"); OnReady = onReady; _remotelyHostedTestRunnerHost = LocateService<IRemotelyHostedTestRunnerHost>(); if (_remotelyHostedTestRunnerHost != null) { var assemblies = new List<Assembly> { Assembly.GetCallingAssembly() }; var rootVisual = _remotelyHostedTestRunnerHost.StartRun(assemblies); OnReady(rootVisual); } else { throw new StatLightException("Could not locate the StatLight IRemotelyHostedTestRunnerHost"); } }