public void Initialize()
            {
                this.solutionEvents = new SolutionEvents(VsIdeTestHostContext.ServiceProvider);

                this.solution = VsIdeTestHostContext.ServiceProvider.GetService<ISolution>();
                this.solution.CreateInstance(Path.GetTempPath(), Path.GetFileName(Path.GetRandomFileName()));
            }
Beispiel #2
0
            public void Initialize()
            {
                this.solutionEvents = new SolutionEvents(VsIdeTestHostContext.ServiceProvider);

                this.solution = VsIdeTestHostContext.ServiceProvider.GetService <ISolution>();
                this.solution.CreateInstance(Path.GetTempPath(), Path.GetFileName(Path.GetRandomFileName()));
            }
Beispiel #3
0
            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();
            }
Beispiel #6
0
 public void Initialize()
 {
     this.solutionEvents = new SolutionEvents(VsIdeTestHostContext.ServiceProvider);
     this.solution       = VsIdeTestHostContext.ServiceProvider.GetService <ISolution>();
 }