Exemple #1
0
 public static ICondition <PropertyMember> HaveProtectedSetter()
 {
     return(new SimpleCondition <PropertyMember>(
                member => member.SetterVisibility == Protected,
                member => "does have a " + VisibilityStrings.ToString(member.SetterVisibility) + " setter",
                "have a protected setter"));
 }
Exemple #2
0
 public static ICondition <PropertyMember> HaveInternalSetter()
 {
     return(new SimpleCondition <PropertyMember>(
                member => member.SetterVisibility == Internal,
                member => "does have a " + VisibilityStrings.ToString(member.SetterVisibility) + " setter",
                "have an internal setter"));
 }
Exemple #3
0
 public static ICondition <PropertyMember> HavePublicGetter()
 {
     return(new SimpleCondition <PropertyMember>(
                member => member.GetterVisibility == Public,
                member => "does have a " + VisibilityStrings.ToString(member.GetterVisibility) + " getter",
                "have a public getter"));
 }