Exemplo n.º 1
0
        protected global::NUnit.Framework.Constraints.Constraint InstantiateConstraint(SubsetOfXml ctrXml)
        {
            var ctr = new NBi.NUnit.Structure.SubsetOfConstraint(ctrXml.GetItems());

                //Ignore-case if requested
                if (ctrXml.IgnoreCase)
                    ctr = ctr.IgnoreCase;
            return ctr;
        }
Exemplo n.º 2
0
        protected NBiConstraint InstantiateConstraint(SubsetOfXml ctrXml)
        {
            var ctr = new NBi.NUnit.Structure.SubsetOfConstraint(ctrXml.GetItems());

            //Ignore-case if requested
            if (ctrXml.IgnoreCase)
            {
                ctr = ctr.IgnoreCase;
            }
            return(ctr);
        }
Exemplo n.º 3
0
        protected global::NUnit.Framework.Constraints.Constraint InstantiateConstraint(SubsetOfXml ctrXml)
        {
            NBi.NUnit.Member.SubsetOfConstraint ctr;
            if (ctrXml.Query != null)
                ctr = new NBi.NUnit.Member.SubsetOfConstraint(ctrXml.Query.GetCommand());
            else if (ctrXml.Members != null)
            {
                var disco = InstantiateMembersDiscovery(ctrXml.Members);
                ctr = new NBi.NUnit.Member.SubsetOfConstraint(disco);
            }
            else
                ctr = new NBi.NUnit.Member.SubsetOfConstraint(ctrXml.GetItems());

            //Ignore-case if requested
            if (ctrXml.IgnoreCase)
                ctr = ctr.IgnoreCase;
            return ctr;
        }
Exemplo n.º 4
0
        protected global::NUnit.Framework.Constraints.Constraint InstantiateConstraint(SubsetOfXml ctrXml)
        {
            NBi.NUnit.Member.SubsetOfConstraint ctr;
            if (ctrXml.Query != null)
            {
                ctr = new NBi.NUnit.Member.SubsetOfConstraint(ctrXml.Query.GetCommand());
            }
            else if (ctrXml.Members != null)
            {
                var disco = InstantiateMembersDiscovery(ctrXml.Members);
                ctr = new NBi.NUnit.Member.SubsetOfConstraint(disco);
            }
            else
            {
                ctr = new NBi.NUnit.Member.SubsetOfConstraint(ctrXml.GetItems());
            }

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