Creating a IEqualityComparer<IEnumerable<T>>
问题 I'm using xUnit and it doesn't have a way to determine if 2 IEnumerable<T> are equal if T is custom type. I've tried using LINQ SequenceEqual but again as the instances of T are different this returns false; Here is a basic test with a non-working IEqualityComparer [Fact] public void FactMethodName() { var one = new[] { new KeywordSchedule() { Id = 1 } }; var two = new[] { new KeywordSchedule() { Id = 1 } }; Assert.Equal(one, two, new KeywordScheduleComparer()); } public class