/// <summary> /// Checks that the actual actualValue has fields equals to the expected actualValue ones. /// </summary> /// <typeparam name="T"> /// Type of the checked actualValue. /// </typeparam> /// <typeparam name="TU">Type of the expected actualValue.</typeparam> /// <param name="check"> /// The fluent check to be extended. /// </param> /// <param name="expected"> /// The expected actualValue. /// </param> /// <returns> /// A check link. /// </returns> /// <exception cref="FluentCheckException"> /// The actual actualValue doesn't have all fields equal to the expected actualValue ones. /// </exception> /// <remarks> /// The comparison is done field by field. /// </remarks> public static ICheckLink <ICheck <T> > HasFieldsWithSameValues <T, TU>(this ICheck <T> check, TU expected) { check.Considering().All.Fields.IgnoreExtra.IsEqualTo(expected); return(ExtensibilityHelper.BuildCheckLink(check)); }