CheckerFor() public method

public CheckerFor ( Type type ) : Func
type System.Type
return Func
Esempio n. 1
0
        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 elementType = type.GetTypeInfo().GetGenericArguments().First();
            var inner = checker.CheckerFor(elementType);

            return (expected, actual) => new CollectionComparer(inner).Matches(expected, actual);
        }
Esempio n. 3
0
        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));
        }
 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);
 }