public InheritanceTestXml() { categories = new List<string>(); traits = new List<TraitXml>(); setup = new SetupXml(); cleanup = new CleanupXml(); }
public InheritanceTestXml() { categories = new List <string>(); traits = new List <TraitXml>(); setup = new SetupXml(); cleanup = new CleanupXml(); }
public TestXml() { Constraints = new List<AbstractConstraintXml>(); Systems = new List<AbstractSystemUnderTestXml>(); Categories = new List<string>(); Setup = new SetupXml(); Cleanup = new CleanupXml(); Condition = new ConditionXml(); GroupNames = new List<string>(); }
public TestXml() { Constraints = new List <AbstractConstraintXml>(); Systems = new List <AbstractSystemUnderTestXml>(); Categories = new List <string>(); Setup = new SetupXml(); Cleanup = new CleanupXml(); Condition = new ConditionXml(); GroupNames = new List <string>(); }
public TestXml(TestStandaloneXml standalone) { this.Name = standalone.Name; this.DescriptionElement = standalone.DescriptionElement; this.IgnoreElement = standalone.IgnoreElement; this.Categories = standalone.Categories; this.Constraints = standalone.Constraints; this.Setup = standalone.Setup; this.Cleanup = standalone.Cleanup; this.Systems = standalone.Systems; this.UniqueIdentifier = standalone.UniqueIdentifier; this.Edition = standalone.Edition; }
private void ExecuteCleanup(CleanupXml cleanup) { try { foreach (var command in cleanup.Commands) { var impl = new DecorationFactory().Get(command); impl.Execute(); } } catch (Exception ex) { HandleExceptionDuringCleanup(ex); } }
private void ExecuteCleanup(CleanupXml cleanup, IDictionary <string, ITestVariable> allVariables) { var cleanupHelper = new SetupHelper(serviceLocator, allVariables); var commands = cleanupHelper.Execute(cleanup.Commands); try { foreach (var command in commands) { var impl = new DecorationFactory().Instantiate(command); impl.Execute(); } } catch (Exception ex) { HandleExceptionDuringCleanup(ex); } }
public void AddInheritance(List<string> inheritedCategories, SetupXml inheritedSetup, CleanupXml inheritedCleanup) { this.categories.AddRange(inheritedCategories); InheritDecoration(this.setup, inheritedSetup); InheritDecoration(this.cleanup, inheritedCleanup); }
public void AddInheritance(List <string> inheritedCategories, SetupXml inheritedSetup, CleanupXml inheritedCleanup) { this.categories.AddRange(inheritedCategories); InheritDecoration(this.setup, inheritedSetup); InheritDecoration(this.cleanup, inheritedCleanup); }