Esempio n. 1
0
        public void OpenProjectOptions()
        {
            ReproStep(string.Format("In Solution Explorer, right click '{0}' and select 'Options'", projectName));
            SolutionExplorerController.SelectProject(solutionName, projectName);

            Session.Query(IdeQuery.TextArea);
            Session.ExecuteCommand(ProjectCommands.ProjectOptions);
            Session.WaitForElement(windowQuery);
            TakeScreenshot("Opened-ProjectOptionsDialog");
        }
Esempio n. 2
0
        public void TestDontOpenReadmeOpenedInOther()
        {
            var packageInfo = new NuGetPackageOptions {
                PackageName  = "RestSharp",
                Version      = "105.2.3",
                IsPreRelease = true
            };

            var projectDetails = CreateProject();

            NuGetController.AddPackage(packageInfo, this);
            WaitForNuGetReadmeOpened();
            Session.ExecuteCommand(FileCommands.CloseFile);

            var pclTemplateOptions = new TemplateSelectionOptions {
                CategoryRoot     = "Other",
                Category         = ".NET",
                TemplateKindRoot = "General",
                TemplateKind     = "Library"
            };
            var pclProjectDetails = ProjectDetails.ToExistingSolution(projectDetails.SolutionName,
                                                                      GenerateProjectName(pclTemplateOptions.TemplateKind));

            CreateProject(pclTemplateOptions, pclProjectDetails);
            Ide.WaitForIdeIdle(30);

            SolutionExplorerController.SelectProject(projectDetails.SolutionName, pclProjectDetails.ProjectName);
            NuGetController.AddPackage(packageInfo, this);
            try {
                WaitForNuGetReadmeOpened(false);
                var failureMessage = string.Format("Expected: {0}\nActual:{1}",
                                                   "readme.txt tab should not open", "readme.txt tab opens");
                ReproStep(failureMessage);
                Assert.Fail(failureMessage);
            } catch (TimeoutException) {
                Session.DebugObject.Debug("readme.txt tab failed to open as expected");
            }
        }
Esempio n. 3
0
 public void Open(string addToSolutionName)
 {
     SolutionExplorerController.SelectSolution(addToSolutionName);
     Session.ExecuteCommand(ProjectCommands.AddNewProject);
     WaitForOpen();
 }
Esempio n. 4
0
 public void Open(string addToSolutionName)
 {
     Session.SelectElement(SolutionExplorerController.GetSolutionQuery(addToSolutionName));
     Session.ExecuteCommand(ProjectCommands.AddNewProject);
     Session.WaitForElement(c => c.Window().Marked("New Project"));
 }