コード例 #1
0
        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);
        }
コード例 #2
0
 private static IMutatorsAssignRecorder ExcludingInterface(this IMutatorsAssignRecorder recorder, Type interfaceTypeToExclude)
 {
     recorder.ExcludeFromCoverage(x => interfaceTypeToExclude.IsAssignableFrom(x.Type));
     return(recorder);
 }
コード例 #3
0
 private static IMutatorsAssignRecorder ExcludingType(this IMutatorsAssignRecorder recorder, Type typeToExclude)
 {
     recorder.ExcludeFromCoverage(x => x.Type == typeToExclude);
     return(recorder);
 }