public Func<object, object, bool> CreateComparison(Type type, EquivalenceChecker checker)
        {
            var elementType = type.GetTypeInfo().GetGenericArguments().First();
            var inner = checker.CheckerFor(elementType);

            return (expected, actual) => new CollectionComparer(inner).Matches(expected, actual);
        }
 public Func<object, object, bool> CreateComparison(Type type, EquivalenceChecker checker)
 {
     var inner = checker.CheckerFor(type.GetElementType());
     return (expected, actual) => new CollectionComparer(inner).Matches(expected, actual);
 }