private IEnumerable <ITestRule> GetEqualGetHashCodeReturns(T instance, T other) => GetHashCodeMethod.Select( method => new GetHashCodeEqualReturns <T>(method, instance, other));
/// <summary> /// Erstellt eine neue Instanz der <see cref="LambdaEqualityComparer{T}"/>-Klasse. /// </summary> /// <param name="comparer">Die zu verwendende Vergleichsmethode.</param> /// <param name="hasher">Die zu verwendende Methode zum ermitteln des Hashcodes.</param> public LambdaEqualityComparer(ComparerMethod <T> comparer, GetHashCodeMethod <T> hasher) { this.Comparer = comparer; this.Hasher = hasher; }