Ejemplo n.º 1
0
 /// <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);
 }
Ejemplo n.º 2
0
 /// <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 <T>(IEqualityComparer <T> comparer)
 {
     this.comparer.ExternalComparer = 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 CollectionItemsEqualConstraint Using(IEqualityComparer comparer)
 {
     this.comparer.ExternalComparer = EqualityAdapter.For(comparer);
     return(this);
 }