當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。