/// <summary> /// Does intersection-equality testing on two collections, ignoring complex item referencing /// </summary> /// <param name="continuation">Continuation to operate on</param> /// <param name="expected">Collection to match</param> /// <param name="customEqualityComparers">Custom implementations of IEqualityComparer<TProperty> /// to use when comparing properties of type TProperty</param> /// <typeparam name="T">Collection item type</typeparam> public static void Equal <T>( this ICollectionIntersection <T> continuation, IEnumerable <T> expected, params object[] customEqualityComparers ) { continuation.Equal(expected, NULL_STRING, customEqualityComparers); }
/// <summary> /// Does intersection-equality testing on two collections, ignoring complex item referencing /// </summary> /// <param name="continuation">Continuation to operate on</param> /// <param name="expected">Collection to match</param> /// <param name="customMessage">Custom message to add when failing</param> /// <param name="customEqualityComparers">Custom implementations of IEqualityComparer<TProperty> /// to use when comparing properties of type TProperty</param> /// <typeparam name="T">Collection item type</typeparam> public static void Equal <T>( this ICollectionIntersection <T> continuation, IEnumerable <T> expected, string customMessage, params object[] customEqualityComparers ) { continuation.Equal(expected, () => customMessage, customEqualityComparers); }