Example #1
0
 /// <summary>
 ///     Ignores the specified member in comparisons.
 /// </summary>
 /// <typeparam name="T">expected object type</typeparam>
 /// <typeparam name="TMember">member type</typeparam>
 /// <param name="configurationContext"></param>
 /// <param name="memberExpression">member expression</param>
 /// <returns></returns>
 public static IConfigurationContext Ignore <T, TMember>(this IConfigurationContext <T> configurationContext,
                                                         Expression <Func <T, TMember> > memberExpression)
 {
     configurationContext.Member(memberExpression).UsesComparison(Expect.Ignored());
     return(configurationContext);
 }
 /// <summary>
 ///     Ignores the specified relative member where path matches occur in comparisons.
 /// </summary>
 /// <typeparam name="T">expected object type</typeparam>
 /// <param name="configurationContext"></param>
 /// <param name="memberPath">relative path to ignored members</param>
 /// <returns></returns>
 public static IConfigurationContext <T> IgnoreRelativePath <T>(this IConfigurationContext <T> configurationContext, string memberPath)
 {
     configurationContext.RelativeMember(memberPath).UsesComparison(Expect.Ignored());
     return(configurationContext);
 }