public VisualStudioJSLintProviderTestableBase() { this.Environment = VisualStudioHelper.GetCurrentEnvironment(); var serviceProvider = new ServiceProvider(this.Environment as IOleServiceProvider); var assemblyName = typeof(VisualStudioJSLintProviderIntegration).Assembly.GetName().Name; var projectFile = string.Format(@"Specifications\{0}\{0}.csproj", assemblyName); this.Project = this.Environment.Locate().ProjectByUniqueName(projectFile); this.SettingsPath = Path.Combine(Path.GetDirectoryName(this.Project.FullName), "JSLintNet.json"); this.Instance = new VisualStudioJSLintProvider(serviceProvider, new JSLintErrorListProvider(serviceProvider)); }