/// <summary> /// Performs intersection-equality testing on two collections /// </summary> /// <param name="continuation">Continuation to operate on</param> /// <param name="expected">Expected collection values</param> /// <param name="customEqualityComparers">Custom implementations of IEqualityComparer<TProperty> /// to use when comparing properties of type TProperty</param> /// <typeparam name="T">Type of collection item</typeparam> public static void To <T>( this ICollectionIntersectionEqual <T> continuation, IEnumerable <T> expected, params object[] customEqualityComparers ) { continuation.To(expected, NULL_STRING, customEqualityComparers); }
/// <summary> /// Performs intersection-equality testing on two collections /// </summary> /// <param name="continuation">Continuation to operate on</param> /// <param name="expected">Expected collection values</param> /// <param name="customMessage">Custom message to add to failure messages</param> /// <param name="customEqualityComparers">Custom implementations of IEqualityComparer<TProperty> /// to use when comparing properties of type TProperty</param> /// <typeparam name="T">Type of collection item</typeparam> public static void To <T>( this ICollectionIntersectionEqual <T> continuation, IEnumerable <T> expected, string customMessage, params object[] customEqualityComparers ) { continuation.To(expected, () => customMessage, customEqualityComparers); }