Ejemplo n.º 1
0
        protected global::NUnit.Framework.Constraints.Constraint InstantiateConstraint(EquivalentToXml ctrXml)
        {
            NBi.NUnit.Member.EquivalentToConstraint ctr;
            if (ctrXml.Query != null)
                ctr = new NBi.NUnit.Member.EquivalentToConstraint(ctrXml.Query.GetCommand());
            else
                ctr = new NBi.NUnit.Member.EquivalentToConstraint(ctrXml.GetItems());

            //Ignore-case if requested
            if (ctrXml.IgnoreCase)
                ctr = ctr.IgnoreCase;
            return ctr;
        }
        protected NBiConstraint InstantiateConstraint(EquivalentToXml ctrXml)
        {
            NBi.NUnit.Member.EquivalentToConstraint ctr;
            if (ctrXml.Query != null)
                ctr = new NBi.NUnit.Member.EquivalentToConstraint(ctrXml.Query.GetCommand());
            else if (ctrXml.Members != null)
            {
                var disco = InstantiateMembersDiscovery(ctrXml.Members);
                ctr = new NBi.NUnit.Member.EquivalentToConstraint(disco);
            }
            else
                ctr = new NBi.NUnit.Member.EquivalentToConstraint(ctrXml.GetItems());

            //Ignore-case if requested
            if (ctrXml.IgnoreCase)
                ctr = ctr.IgnoreCase;
            return ctr;
        }
Ejemplo n.º 3
0
        protected global::NUnit.Framework.Constraints.Constraint InstantiateConstraint(EquivalentToXml ctrXml)
        {
            NBi.NUnit.Member.EquivalentToConstraint ctr;
            if (ctrXml.Query != null)
            {
                ctr = new NBi.NUnit.Member.EquivalentToConstraint(ctrXml.Query.GetCommand());
            }
            else
            {
                ctr = new NBi.NUnit.Member.EquivalentToConstraint(ctrXml.GetItems());
            }

            //Ignore-case if requested
            if (ctrXml.IgnoreCase)
            {
                ctr = ctr.IgnoreCase;
            }
            return(ctr);
        }
Ejemplo n.º 4
0
        protected NBiConstraint InstantiateConstraint(EquivalentToXml ctrXml)
        {
            NBi.NUnit.Member.EquivalentToConstraint ctr;
            if (ctrXml.Query != null)
            {
                ctr = new NBi.NUnit.Member.EquivalentToConstraint(ctrXml.Query.GetCommand());
            }
            else if (ctrXml.Members != null)
            {
                var disco = InstantiateMembersDiscovery(ctrXml.Members);
                ctr = new NBi.NUnit.Member.EquivalentToConstraint(disco);
            }
            else
            {
                ctr = new NBi.NUnit.Member.EquivalentToConstraint(ctrXml.GetItems());
            }

            //Ignore-case if requested
            if (ctrXml.IgnoreCase)
            {
                ctr = ctr.IgnoreCase;
            }
            return(ctr);
        }