public void Initialize() { this.solutionEvents = new SolutionEvents(VsIdeTestHostContext.ServiceProvider); this.solution = VsIdeTestHostContext.ServiceProvider.GetService<ISolution>(); this.solution.CreateInstance(Path.GetTempPath(), Path.GetFileName(Path.GetRandomFileName())); }
public void Initialize() { this.solutionEvents = new SolutionEvents(VsIdeTestHostContext.ServiceProvider); this.solution = VsIdeTestHostContext.ServiceProvider.GetService <ISolution>(); this.solution.CreateInstance(Path.GetTempPath(), Path.GetFileName(Path.GetRandomFileName())); }
public void Initialize() { this.solutionEvents = new SolutionEvents(VsIdeTestHostContext.ServiceProvider); this.solution = VsIdeTestHostContext.ServiceProvider.GetService <ISolution>(); // Create a new solution and close it var fileName = Path.GetFileName(Path.GetRandomFileName()); this.solution.CreateInstance(Path.GetTempPath(), fileName); this.solution.As <EnvDTE.Solution>().SaveAs(fileName); this.solutionPath = this.solution.PhysicalPath; this.solution.As <EnvDTE.Solution>().Close(); }
public void Initialize() { this.solutionEvents = new SolutionEvents(VsIdeTestHostContext.ServiceProvider); this.solution = VsIdeTestHostContext.ServiceProvider.GetService<ISolution>(); }
public void Initialize() { this.solutionEvents = new SolutionEvents(VsIdeTestHostContext.ServiceProvider); this.solution = VsIdeTestHostContext.ServiceProvider.GetService<ISolution>(); // Create a new solution and close it var fileName = Path.GetFileName(Path.GetRandomFileName()); this.solution.CreateInstance(Path.GetTempPath(), fileName); this.solution.As<EnvDTE.Solution>().SaveAs(fileName); this.solutionPath = this.solution.PhysicalPath; this.solution.As<EnvDTE.Solution>().Close(); }
public void Initialize() { this.solutionEvents = new SolutionEvents(VsIdeTestHostContext.ServiceProvider); this.solution = VsIdeTestHostContext.ServiceProvider.GetService <ISolution>(); }