public void AddEquivalenceClassAsNeeded(string equivalenceClass) { if (!EquivalenceClasses.Contains(equivalenceClass)) { EquivalenceClasses.Add(equivalenceClass); } }
//If the test case has the same combinations and equivalence classes public virtual bool EqualsByRelations(TestCase tc) { foreach (EquivalenceClass equivalenceClass in tc.EquivalenceClasses) { if (!EquivalenceClasses.Contains(equivalenceClass)) { return(false); } } foreach (EquivalenceClass equivalenceClass in EquivalenceClasses) { if (!tc.EquivalenceClasses.Contains(equivalenceClass)) { return(false); } } foreach (Combination combi in tc.Combinations) { if (!Combinations.Contains(combi)) { return(false); } } foreach (Combination combi in Combinations) { if (!tc.Combinations.Contains(combi)) { return(false); } } return(true); }