/// <summary> /// Initializes a new instance of the <see cref="ConfigurationTest"/> class. /// </summary> public ConfigurationTest() { Folder = string.Empty; ConfigurationTestSpecification = new ConfigurationTestSpecification(); ConfigurationTestResult = new ConfigurationTestResult(); Templates = new List <IConfigurationTestTemplate>(); }
/// <summary> /// Initializes a new instance of the <see cref="ConfigurationTest"/> class. /// </summary> /// <param name="folder">Folder containing all template files.</param> /// <param name="testConfiguration">Associated test area configuration from w2t file.</param> public ConfigurationTest(string folder, TestConfiguration testConfiguration) : this() { Folder = folder; TestConfiguration = testConfiguration; if (testConfiguration != null) { // TODO ShowHyperlinkBaseMessageBoxes should be configurable in the xml file. ShowHyperlinkBaseMessageBoxes = true; SetHyperlinkBase = testConfiguration.SetHyperlinkBase; ExpandSharedSteps = testConfiguration.ExpandSharedSteps; ConfigurationTestSpecification = new ConfigurationTestSpecification(TestConfiguration.TestSpecificationConfiguration); ConfigurationTestResult = new ConfigurationTestResult(TestConfiguration.TestResultConfiguration); Templates = new List <IConfigurationTestTemplate>(); foreach (var template in TestConfiguration.TemplatesConfiguration) { Templates.Add(new ConfigurationTestTemplate(template)); } } }