3 instantiations of AssertEqualityComparer
xunit.assert (3)
Comparers.cs (1)
35 new AssertEqualityComparer<T?>(innerComparer);
Sdk\AssertEqualityComparer.cs (2)
135 internal static readonly IEqualityComparer DefaultInnerComparer = new AssertEqualityComparerAdapter<object>(new AssertEqualityComparer<object>()); 506 new AssertEqualityComparer<U>(innerComparer: innerComparer).Equals(x, y);
19 references to AssertEqualityComparer
xunit.assert (19)
AsyncCollectionAsserts.cs (4)
300 Equal(expected, AssertHelper.ToEnumerable(actual), AssertEqualityComparer<T>.FromComparer(comparer)); 319 Equal(AssertHelper.ToEnumerable(expected), AssertHelper.ToEnumerable(actual), AssertEqualityComparer<T>.FromComparer(comparer)); 419 NotEqual(expected, AssertHelper.ToEnumerable(actual), AssertEqualityComparer<T>.FromComparer(comparer)); 438 NotEqual(AssertHelper.ToEnumerable(expected), AssertHelper.ToEnumerable(actual), AssertEqualityComparer<T>.FromComparer(comparer));
CollectionAsserts.cs (2)
529 Equal(expected, actual, AssertEqualityComparer<T>.FromComparer(comparer)); 611 NotEqual(expected, actual, AssertEqualityComparer<T>.FromComparer(comparer));
EqualityAsserts.cs (8)
120 Equal(expected, actual, AssertEqualityComparer<T>.FromComparer(comparer)); 184 var aec = comparer as AssertEqualityComparer<T>; 212 result = CollectionTracker.AreCollectionsEqual(expectedTracker, actualTracker, itemComparer, itemComparer == AssertEqualityComparer<T>.DefaultInnerComparer, out mismatchedIndex); 639 NotEqual(expected, actual, AssertEqualityComparer<T>.FromComparer(comparer)); 712 var aec = comparer as AssertEqualityComparer<T>; 733 result = CollectionTracker.AreCollectionsEqual(expectedTracker, actualTracker, itemComparer, itemComparer == AssertEqualityComparer<T>.DefaultInnerComparer, out mismatchedIndex);
Sdk\AssertEqualityComparer.cs (3)
114 /// Gets an exception that indicates that GetHashCode was called on <see cref="AssertEqualityComparer{T}.FuncEqualityComparer"/> 146 /// Initializes a new instance of the <see cref="AssertEqualityComparer{T}" /> class. 156 this.innerComparer = new Lazy<IEqualityComparer>(() => innerComparer ?? AssertEqualityComparer<T>.DefaultInnerComparer);
Sdk\CollectionTracker.cs (2)
90 /// comparer from <see cref="AssertEqualityComparer{T}"/>; pass <c>false</c>, otherwise.</param> 292 var innerCompare = AreCollectionsEqual(xCurrentTracker, yCurrentTracker, AssertEqualityComparer<object>.DefaultInnerComparer, true, out _);