public void Contains_With_Comparer_And_Contains_Must_ReturnTrue(int[] source) { // Arrange var value = System.Linq.Enumerable.Last(source); var wrapped = Wrap.AsValueReadOnlyCollection(source); // Act var result = ValueReadOnlyCollection .Contains <Wrap.ValueReadOnlyCollection <int>, Wrap.Enumerator <int>, int>(wrapped, value, EqualityComparer <int> .Default); // Assert _ = result.Must() .BeTrue(); }
public void Contains_With_Comparer_And_NotContains_Must_ReturnFalse(int[] source) { // Arrange var value = int.MaxValue; var wrapped = Wrap.AsValueReadOnlyCollection(source); // Act var result = ValueReadOnlyCollection .Contains <Wrap.ValueReadOnlyCollection <int>, Wrap.Enumerator <int>, int>(wrapped, value, EqualityComparer <int> .Default); // Assert _ = result.Must() .BeFalse(); }