/// <summary> /// Flag the constraint to use the supplied IEqualityComparer object. /// </summary> /// <param name="comparer">The IComparer object to use.</param> /// <returns>Self.</returns> public CollectionItemsEqualConstraint Using <T>(IEqualityComparer <T> comparer) { this.comparer.ExternalComparers.Add(EqualityAdapter.For(comparer)); return(this); }
/// <summary> /// Flag the constraint to use the supplied Comparison object. /// </summary> /// <param name="comparer">The IComparer object to use.</param> /// <returns>Self.</returns> public EqualConstraint Using <T>(Comparison <T> comparer) { this.comparer.ExternalComparers.Add(EqualityAdapter.For(comparer)); return(this); }
/// <summary> /// Flag the constraint to use the supplied IEqualityComparer object. /// </summary> /// <param name="comparer">The IComparer object to use.</param> /// <returns>Self.</returns> public EqualConstraint Using(IEqualityComparer comparer) { this.comparer.ExternalComparers.Add(EqualityAdapter.For(comparer)); return(this); }
/// <summary> /// Flag the constraint to use the supplied IEqualityComparer object. /// </summary> /// <param name="comparer">The IComparer object to use.</param> /// <returns>Self.</returns> public ContainsConstraint Using <T>(IEqualityComparer <T> comparer) { this.adapter = EqualityAdapter.For(comparer); return(this); }