protected virtual void OnSelectTemplate(NewProjectController newProject, TemplateSelectionOptions templateOptions) { Assert.IsTrue(newProject.SelectTemplateType(templateOptions.CategoryRoot, templateOptions.Category)); TakeScreenShot("TemplateCategorySelected"); Assert.IsTrue(newProject.SelectTemplate(templateOptions.TemplateKindRoot, templateOptions.TemplateKind)); TakeScreenShot("TemplateSelected"); Assert.IsTrue(newProject.Next()); TakeScreenShot("NextAfterTemplateSelected"); }
protected virtual void OnSelectTemplate(NewProjectController newProject, TemplateSelectionOptions templateOptions) { if (!newProject.SelectTemplateType(templateOptions.CategoryRoot, templateOptions.Category)) { throw new TemplateSelectionException(string.Format("Failed to select Category '{0}' under '{1}'", templateOptions.Category, templateOptions.CategoryRoot)); } TakeScreenShot("TemplateCategorySelected"); if (!newProject.SelectTemplate(templateOptions.TemplateKindRoot, templateOptions.TemplateKind)) { throw new TemplateSelectionException(string.Format("Failed to select Template '{0}' under '{1}'", templateOptions.TemplateKind, templateOptions.TemplateKindRoot)); } TakeScreenShot("TemplateSelected"); if (!newProject.Next()) { throw new TemplateSelectionException("Clicking Next failed after selecting template"); } TakeScreenShot("NextAfterTemplateSelected"); }
protected virtual void OnSelectTemplate (NewProjectController newProject, TemplateSelectionOptions templateOptions) { if (!newProject.SelectTemplateType (templateOptions.CategoryRoot, templateOptions.Category)) { throw new TemplateSelectionException (string.Format ("Failed to select Category '{0}' under '{1}'", templateOptions.Category, templateOptions.CategoryRoot)); } TakeScreenShot ("TemplateCategorySelected"); if (!newProject.SelectTemplate (templateOptions.TemplateKindRoot, templateOptions.TemplateKind)) { throw new TemplateSelectionException (string.Format ("Failed to select Template '{0}' under '{1}'", templateOptions.TemplateKind, templateOptions.TemplateKindRoot)); } TakeScreenShot ("TemplateSelected"); if (!newProject.Next ()) { throw new TemplateSelectionException ("Clicking Next failed after selecting template"); } TakeScreenShot ("NextAfterTemplateSelected"); }
public void SelectTemplate(NewProjectController newProject, string categoryRoot, string category, string kindRoot, string kind) { Assert.IsTrue(newProject.SelectTemplateType(categoryRoot, category)); Assert.IsTrue(newProject.SelectTemplate(kindRoot, kind)); }
protected virtual void OnSelectTemplate (NewProjectController newProject, TemplateSelectionOptions templateOptions) { Assert.IsTrue (newProject.SelectTemplateType (templateOptions.CategoryRoot, templateOptions.Category)); TakeScreenShot ("TemplateCategorySelected"); Assert.IsTrue (newProject.SelectTemplate (templateOptions.TemplateKindRoot, templateOptions.TemplateKind)); TakeScreenShot ("TemplateSelected"); Assert.IsTrue (newProject.Next ()); TakeScreenShot ("NextAfterTemplateSelected"); }