//~ Constructor ...................................................... // ------------------------------------------------------ /// <summary> /// Creates a new CxxTest suite generating wizard. /// </summary> /// <param name="sp"> /// The service provider to use to access Visual Studio services. /// </param> /// <param name="headerUnderTest"> /// The hierarchy item representing the header that the test suite /// should be generated from. /// </param> public NewCxxTestSuiteWizard(IServiceProvider sp, HierarchyItem headerUnderTest) { serviceProvider = sp; // Create the wizard pages and add them to the wizard. page1 = new NewCxxTestSuiteWizardPage1(sp, headerUnderTest); page2 = new NewCxxTestSuiteWizardPage2(sp); AddPage(page1); AddPage(page2); this.BannerTitle = "New CxxTest Suite"; this.BannerMessage = "Select the name of the new CxxTest suite. " + "You have the options to specify the header of the class " + "under test and on the next page, the methods to be tested."; }
public override void OnGoingToNextPage(WizardPageControl nextPage) { NewCxxTestSuiteWizardPage2 page2 = (NewCxxTestSuiteWizardPage2)nextPage; page2.PopulateWithHeader(headerUnderTest); }