public InheritanceTestXml()
 {
     categories = new List<string>();
     traits = new List<TraitXml>();
     setup = new SetupXml();
     cleanup = new CleanupXml();
 }
Example #2
0
 public InheritanceTestXml()
 {
     categories = new List <string>();
     traits     = new List <TraitXml>();
     setup      = new SetupXml();
     cleanup    = new CleanupXml();
 }
Example #3
0
 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>();
 }
Example #4
0
 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>();
 }
Example #5
0
 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;
 }
Example #6
0
 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;
 }
Example #7
0
 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);
     }
 }
Example #8
0
        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);
 }
Example #10
0
 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);
     }
 }
Example #11
0
 public void AddInheritance(List <string> inheritedCategories, SetupXml inheritedSetup, CleanupXml inheritedCleanup)
 {
     this.categories.AddRange(inheritedCategories);
     InheritDecoration(this.setup, inheritedSetup);
     InheritDecoration(this.cleanup, inheritedCleanup);
 }