public void TestInitialize() { this.serviceProvider = new ConfigurableServiceProvider(); this.outputPane = new ConfigurableVsOutputWindowPane(); this.serviceProvider.RegisterService(typeof(SVsGeneralOutputWindowPane), this.outputPane); this.shell = new ConfigurableVsShell(); this.shell.RegisterPropertyGetter((int)__VSSPROPID2.VSSPROPID_InstallRootDir, () => this.VsInstallRoot); this.serviceProvider.RegisterService(typeof(SVsShell), this.shell); this.testSubject = new RuleSetInspector(this.serviceProvider); Directory.CreateDirectory(this.VsRuleSetsDirectory); Directory.CreateDirectory(this.SonarQubeRuleSetFolder); Directory.CreateDirectory(this.ProjectRuleSetFolder); Directory.CreateDirectory(this.SolutionSharedRuleSetFolder); this.temporaryFiles = new TempFileCollection(); }