示例#1
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()));
            }
示例#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()));
            }
示例#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();
            }
示例#4
0
 public void Initialize()
 {
     this.solutionEvents = new SolutionEvents(VsIdeTestHostContext.ServiceProvider);
     this.solution = VsIdeTestHostContext.ServiceProvider.GetService<ISolution>();
 }
示例#5
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();
            }
示例#6
0
 public void Initialize()
 {
     this.solutionEvents = new SolutionEvents(VsIdeTestHostContext.ServiceProvider);
     this.solution       = VsIdeTestHostContext.ServiceProvider.GetService <ISolution>();
 }