/// <summary> /// Matches any value that is equivalent to <paramref name="expected"/>. /// </summary> /// <typeparam name="T">Type of the argument to check.</typeparam> /// <param name="mgr">The <seealso cref="IArgumentConstraintManager{T}"/> with the actual object to match.</param> /// <param name="expected">The expected object to match.</param> /// <returns>A dummy argument value.</returns> public static T IsEquivalentTo <T>(this IArgumentConstraintManager <T> mgr, T expected) { return(mgr.IsEquivalentTo(expected, config => config)); }