Exemplo 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 CollectionItemsEqualConstraint Using <T>(IEqualityComparer <T> comparer)
 {
     this.comparer.ExternalComparers.Add(EqualityAdapter.For(comparer));
     return(this);
 }
Exemplo n.º 2
0
 /// <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);
 }
Exemplo n.º 3
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(IEqualityComparer comparer)
 {
     this.comparer.ExternalComparers.Add(EqualityAdapter.For(comparer));
     return(this);
 }
Exemplo n.º 4
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);
 }