コード例 #1
0
 public void AddEquivalenceClassAsNeeded(string equivalenceClass)
 {
     if (!EquivalenceClasses.Contains(equivalenceClass))
     {
         EquivalenceClasses.Add(equivalenceClass);
     }
 }
コード例 #2
0
        //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);
        }