public static IMutatorsAssignRecorder ExcludingGenericProperty <TGenericType, TProperty>(this IMutatorsAssignRecorder recorder, Expression <Func <TGenericType, TProperty> > propertyExpression) { var propertyInfo = (PropertyInfo)((MemberExpression)propertyExpression.Body).Member; recorder.ExcludeFromCoverage(x => AreEqualGenericProperties <TGenericType>(propertyInfo, x)); return(recorder); }
private static IMutatorsAssignRecorder ExcludingInterface(this IMutatorsAssignRecorder recorder, Type interfaceTypeToExclude) { recorder.ExcludeFromCoverage(x => interfaceTypeToExclude.IsAssignableFrom(x.Type)); return(recorder); }
private static IMutatorsAssignRecorder ExcludingType(this IMutatorsAssignRecorder recorder, Type typeToExclude) { recorder.ExcludeFromCoverage(x => x.Type == typeToExclude); return(recorder); }