Ejemplo n.º 1
0
        public void GeneratedDescriptionTest()
        {
            eq11.Value = "Valor 1";
            eq12.Value = "Valor Opcional 2";
            eq22.Value = "Valor 2";

            StdCombination stdCombi = new StdCombination(structure);

            stdCombi.AddEquivalenceClass(eq11);
            stdCombi.AddEquivalenceClass(eq12);
            stdCombi.AddEquivalenceClass(eq22);
            Assert.AreEqual(stdCombi.GeneratedDescription, "(Element Untitled 1='Valor 1' OR Element Untitled 1='Valor Opcional 2') AND (Element Untitled 2='Valor 2')");
        }
        public void IEquivalenceClassesBean()
        {
            StdCombination   st   = new StdCombination(to.TestCasesStruct);
            Element          elem = new Element(to.TestCasesStruct);
            EquivalenceClass equi = new EquivalenceClass(elem);

            st.AddEquivalenceClass(equi);
            DefaultDAO dao = new DefaultDAO(to.TestCasesStruct);

            dao.Save();
            st.RemoveEquivalenceClass(equi);
            elem.RemoveEquivalenceClass(equi);
            dao.DeleteItem(equi);
            to.TestCasesStruct.RemoveElement(elem);
            dao.DeleteItem(elem);
            to.TestCasesStruct.RemoveStdCombination(st);
            dao.DeleteItem(st);
        }