Exemplo n.º 1
0
        public IUndoableEdit DeleteAllCombinations()
        {
            CompoundEdit       ce     = new CompoundEdit();
            List <Combination> combis = new List <Combination>(dependency.Combinations);

            foreach (Combination combination in combis)
            {
                CombinationManager man = new CombinationManager(combination);
                ce.AddEdit(man.DeleteCombination(dependency.ParentStructure));
            }
            return(ce);
        }
        private static IUndoableEdit PropagateStateChangeInCombination(Combination target, EquivalenceClass parentEquivalenceClass)
        {
            CompoundEdit ce = new CompoundEdit();

            if (target.ParentDependency != null)
            {
                ce.AddEdit(EditFactory.instance.CreateRemoveEquivalenceClassEdit(target.ParentDependency, parentEquivalenceClass));
                target.ParentDependency.RemoveEquivalenceClass(parentEquivalenceClass);
                CombinationManager cman = new CombinationManager(target);
                ce.AddEdit(cman.DeleteCombination(target.ParentDependency.ParentStructure));
            }

            return(ce);
        }
        public IUndoableEdit DeleteCombinationPolicy(Combination combination, TestCasesStructure structure)
        {
            CombinationManager cm = new CombinationManager(combination);

            return(cm.DeleteCombination(structure));
        }