当前位置: 首页>>代码示例>>C#>>正文


C# IntegrationTestLibrary.TestUtils类代码示例

本文整理汇总了C#中Microsoft.VsSDK.IntegrationTestLibrary.TestUtils的典型用法代码示例。如果您正苦于以下问题:C# TestUtils类的具体用法?C# TestUtils怎么用?C# TestUtils使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


TestUtils类属于Microsoft.VsSDK.IntegrationTestLibrary命名空间,在下文中一共展示了TestUtils类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: CreateEmptySolution

 public void CreateEmptySolution()
 {
     var testUtils = new TestUtils();
     testUtils.CloseCurrentSolution(
             __VSSLNSAVEOPTIONS.SLNSAVEOPT_NoSave );
     testUtils.CreateEmptySolution( TestContext.TestDir, "EmptySolution" );
 }
开发者ID:IntelliTect,项目名称:PowerStudio,代码行数:7,代码来源:SolutionTests.cs

示例2: CreateEmptySolution

 public void CreateEmptySolution() {
     UIThreadInvoker.Invoke((ThreadInvoker) delegate() {
         var testUtils = new TestUtils();
         testUtils.CloseCurrentSolution(__VSSLNSAVEOPTIONS.SLNSAVEOPT_NoSave);
         testUtils.CreateEmptySolution(TestContext.TestDir, "EmptySolution");
     });
 }
开发者ID:samukce,项目名称:show-my-git-branch,代码行数:7,代码来源:SolutionTests.cs

示例3: VBWinformsApplication

        public void VBWinformsApplication() {
            UIThreadInvoker.Invoke((ThreadInvoker) delegate() {
                //Solution and project creation parameters
                var solutionName = "VBWinApp";
                var projectName = "VBWinApp";

                //Template parameters
                var language = "VisualBasic";
                var projectTemplateName = "WindowsApplication.Zip";
                var itemTemplateName = "CodeFile.zip";
                var newFileName = "Test.vb";

                var dte = (DTE) VsIdeTestHostContext.ServiceProvider.GetService(typeof (DTE));

                var testUtils = new TestUtils();

                testUtils.CreateEmptySolution(TestContext.TestDir, solutionName);
                Assert.AreEqual<int>(0, testUtils.ProjectCount());

                //Add new  Windows application project to existing solution
                testUtils.CreateProjectFromTemplate(projectName, projectTemplateName, language, false);

                //Verify that the new project has been added to the solution
                Assert.AreEqual<int>(1, testUtils.ProjectCount());

                //Get the project
                var project = dte.Solution.Item(1);
                Assert.IsNotNull(project);
                Assert.IsTrue(string.Compare(project.Name, projectName, StringComparison.InvariantCultureIgnoreCase) == 0);

                //Verify Adding new code file to project
                var newCodeFileItem = testUtils.AddNewItemFromVsTemplate(project.ProjectItems, itemTemplateName, language, newFileName);
                Assert.IsNotNull(newCodeFileItem, "Could not create new project item");
            });
        }
开发者ID:samukce,项目名称:show-my-git-branch,代码行数:35,代码来源:VBProjectTests.cs

示例4: ShowToolWindow

        public void ShowToolWindow()
        {
            UIThreadInvoker.Invoke((ThreadInvoker)delegate()
            {
                CommandID toolWindowCmd = new CommandID(DivyaSinghal.StrutViewer.GuidList.guidStrutViewerCmdSet, (int)DivyaSinghal.StrutViewer.PkgCmdIDList.StrutViewerTool);

                TestUtils testUtils = new TestUtils();
                testUtils.ExecuteCommand(toolWindowCmd);

                Assert.IsTrue(testUtils.CanFindToolwindow(new Guid(DivyaSinghal.StrutViewer.GuidList.guidToolWindowPersistanceString)));

            });
        }
开发者ID:divsinghal,项目名称:strut-viewer,代码行数:13,代码来源:ToolWindowTest.cs

示例5: ShowToolWindow

        public void ShowToolWindow()
        {
            UIThreadInvoker.Invoke((ThreadInvoker)delegate()
            {
                CommandID toolWindowCmd = new CommandID(PMC.PlotterService.GuidList.guidPlotterServiceCmdSet, (int)PMC.PlotterService.PkgCmdIDList.cmdid2DPlotter);

                TestUtils testUtils = new TestUtils();
                testUtils.ExecuteCommand(toolWindowCmd);

                Assert.IsTrue(testUtils.CanFindToolwindow(new Guid(PMC.PlotterService.GuidList.guidToolWindowPersistanceString)));

            });
        }
开发者ID:ChaosCabbage,项目名称:plotter-service-for-visual-studio,代码行数:13,代码来源:ToolWindowTest.cs

示例6: ShowToolWindow

        public void ShowToolWindow()
        {
            UIThreadInvoker.Invoke((ThreadInvoker)delegate()
            {
                CommandID toolWindowCmd = new CommandID(MufflonoSoft.CodingDojoHelperVsExtension.GuidList.guidCodingDojoHelperVsExtensionCmdSet, (int)MufflonoSoft.CodingDojoHelperVsExtension.PkgCmdIDList.cmdidCodingDojo);

                TestUtils testUtils = new TestUtils();
                testUtils.ExecuteCommand(toolWindowCmd);

                Assert.IsTrue(testUtils.CanFindToolwindow(new Guid(MufflonoSoft.CodingDojoHelperVsExtension.GuidList.guidToolWindowPersistanceString)));

            });
        }
开发者ID:PapaMufflon,项目名称:CodingDojoHelper,代码行数:13,代码来源:ToolWindowTest.cs

示例7: ShowToolWindow

        public void ShowToolWindow()
        {
            UIThreadInvoker.Invoke((ThreadInvoker)delegate()
            {
                CommandID toolWindowCmd = new CommandID(SmallSharpTools.JavaScriptBrowser.VSPackage.GuidList.guidJavaScriptBrowserCmdSet, (int)SmallSharpTools.JavaScriptBrowser.VSPackage.PkgCmdIDList.cmdidJavaScriptBrowserTool);

                TestUtils testUtils = new TestUtils();
                testUtils.ExecuteCommand(toolWindowCmd);

                Assert.IsTrue(testUtils.CanFindToolwindow(new Guid(SmallSharpTools.JavaScriptBrowser.VSPackage.GuidList.guidToolWindowPersistanceString)));

            });
        }
开发者ID:Mickey-P,项目名称:SmallSharpToolsDotNet,代码行数:13,代码来源:ToolWindowTest.cs

示例8: ShowToolWindow

        public void ShowToolWindow()
        {
            UIThreadInvoker.Invoke((ThreadInvoker)delegate()
            {
                CommandID toolWindowCmd = new CommandID(PiotrTrzpil.VisualMutator_VSPackage.GuidList.guidVisualMutator_VSPackageCmdSet, (int)PiotrTrzpil.VisualMutator_VSPackage.PkgCmdIDList.cmdidVisualMutator);

                TestUtils testUtils = new TestUtils();
                testUtils.ExecuteCommand(toolWindowCmd);

                Assert.IsTrue(testUtils.CanFindToolwindow(new Guid(PiotrTrzpil.VisualMutator_VSPackage.GuidList.guidToolWindowPersistanceString)));

            });
        }
开发者ID:Refresh06,项目名称:visualmutator,代码行数:13,代码来源:ToolWindowTest.cs

示例9: ShowToolWindow

        public void ShowToolWindow()
        {
            UIThreadInvoker.Invoke((ThreadInvoker)delegate()
            {
                CommandID toolWindowCmd = new CommandID(OmarSalem.MissingSectionsFinder_Package.GuidList.guidMissingSectionsFinder_PackageCmdSet, (int)OmarSalem.MissingSectionsFinder_Package.PkgCmdIDList.cmdidMSF);

                TestUtils testUtils = new TestUtils();
                testUtils.ExecuteCommand(toolWindowCmd);

                Assert.IsTrue(testUtils.CanFindToolwindow(new Guid(OmarSalem.MissingSectionsFinder_Package.GuidList.guidToolWindowPersistanceString)));

            });
        }
开发者ID:Omar-Salem,项目名称:MissingSectionsFinder,代码行数:13,代码来源:ToolWindowTest.cs

示例10: ShowToolWindow

        public void ShowToolWindow()
        {
            UIThreadInvoker.Invoke((ThreadInvoker)delegate()
            {
                CommandID toolWindowCmd = new CommandID(ZinkoSoft.NuSet.GuidList.NuSetCommandGuid, (int)ZinkoSoft.NuSet.PkgCmdIDList.nusetTools);

                TestUtils testUtils = new TestUtils();
                testUtils.ExecuteCommand(toolWindowCmd);

                Assert.IsTrue(testUtils.CanFindToolwindow(new Guid(ZinkoSoft.NuSet.GuidList.ToolWindowsPersistenceGuidString)));

            });
        }
开发者ID:ZinkoSoft,项目名称:NuSet,代码行数:13,代码来源:ToolWindowTest.cs

示例11: ShowToolWindow

        public void ShowToolWindow()
        {
            UIThreadInvoker.Invoke((ThreadInvoker)delegate()
            {
                CommandID toolWindowCmd = new CommandID(PacktPub.VSPackageSample.GuidList.guidVSPackageSampleCmdSet, (int)PacktPub.VSPackageSample.PkgCmdIDList.cmdidMyTool);

                TestUtils testUtils = new TestUtils();
                testUtils.ExecuteCommand(toolWindowCmd);

                Assert.IsTrue(testUtils.CanFindToolwindow(new Guid(PacktPub.VSPackageSample.GuidList.guidToolWindowPersistanceString)));

            });
        }
开发者ID:solondon,项目名称:VisualStudio2013andNETCookbookCode,代码行数:13,代码来源:ToolWindowTest.cs

示例12: ShowToolWindow

        public void ShowToolWindow()
        {
            UIThreadInvoker.Invoke((ThreadInvoker)delegate()
            {
                CommandID toolWindowCmd = new CommandID(SanJoseWaterCompany.SyncIIS.GuidList.guidSyncIISCmdSet, (int)SanJoseWaterCompany.SyncIIS.PkgCmdIDList.cmdSyncIISWindow);

                TestUtils testUtils = new TestUtils();
                testUtils.ExecuteCommand(toolWindowCmd);

                Assert.IsTrue(testUtils.CanFindToolwindow(new Guid(SanJoseWaterCompany.SyncIIS.GuidList.guidToolWindowPersistanceString)));

            });
        }
开发者ID:sjwaterco,项目名称:sjw_vs_extensions,代码行数:13,代码来源:ToolWindowTest.cs

示例13: ShowToolWindow

        public void ShowToolWindow()
        {
            UIThreadInvoker.Invoke((ThreadInvoker)delegate()
            {
                CommandID toolWindowCmd = new CommandID(Company.TwitterStudio.GuidList.guidTwitterStudioCmdSet, (int)Company.TwitterStudio.PkgCmdIDList.cmdidMyTool);

                TestUtils testUtils = new TestUtils();
                testUtils.ExecuteCommand(toolWindowCmd);

                Assert.IsTrue(testUtils.CanFindToolwindow(new Guid(Company.TwitterStudio.GuidList.guidToolWindowPersistanceString)));

            });
        }
开发者ID:MonsterCoder,项目名称:TwitterStudio,代码行数:13,代码来源:ToolWindowTest.cs

示例14: ShowToolWindow

        public void ShowToolWindow()
        {
            UIThreadInvoker.Invoke((ThreadInvoker)delegate()
            {
                CommandID toolWindowCmd = new CommandID(kazuk.GithubVs.GuidList.guidGithubVsCmdSet, (int)kazuk.GithubVs.PkgCmdIDList.cmdidMyTool);

                TestUtils testUtils = new TestUtils();
                testUtils.ExecuteCommand(toolWindowCmd);

                Assert.IsTrue(testUtils.CanFindToolwindow(new Guid(kazuk.GithubVs.GuidList.guidToolWindowPersistanceString)));

            });
        }
开发者ID:kazuk,项目名称:GithubVsIntegration,代码行数:13,代码来源:ToolWindowTest.cs

示例15: ShowToolWindow

        public void ShowToolWindow()
        {
            UIThreadInvoker.Invoke((ThreadInvoker)delegate()
            {
                CommandID toolWindowCmd = new CommandID(AttackPattern.VisualGit.GuidList.guidVisualGitCmdSet, (int)AttackPattern.VisualGit.PkgCmdIDList.cmdidGitWindow);

                TestUtils testUtils = new TestUtils();
                testUtils.ExecuteCommand(toolWindowCmd);

                Assert.IsTrue(testUtils.CanFindToolwindow(new Guid(AttackPattern.VisualGit.GuidList.guidToolWindowPersistanceString)));

            });
        }
开发者ID:rsweeney21,项目名称:VisualGit,代码行数:13,代码来源:ToolWindowTest.cs


注:本文中的Microsoft.VsSDK.IntegrationTestLibrary.TestUtils类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。