public void SameListUsingComparer() { IEnumerable<string> collection = new List<string> { "a test" }; IEqualityComparer<IEnumerable> comparer = new MyEnumerableComparer(); Assert.Equal(collection, collection, comparer); }
public void DifferentListsUsingComparer() { IEnumerable<string> aCollection = new List<string> { "a test" }; IEnumerable<string> anotherCollection = new List<string> { "another test" }; IEqualityComparer<IEnumerable> comparer = new MyEnumerableComparer(); Assert.NotEqual(aCollection, anotherCollection, comparer); }