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; }
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); }