Ejemplo n.º 1
0
 public MethodMembersShouldConjunction BeCalledBy(IEnumerable <Type> types)
 {
     _ruleCreator.AddCondition(MethodMemberConditionsDefinition.BeCalledBy(types));
     return(new MethodMembersShouldConjunction(_ruleCreator));
 }
Ejemplo n.º 2
0
 public MethodMembersShouldConjunction BeCalledBy(Type type, params Type[] moreTypes)
 {
     _ruleCreator.AddCondition(MethodMemberConditionsDefinition.BeCalledBy(type, moreTypes));
     return(new MethodMembersShouldConjunction(_ruleCreator));
 }
Ejemplo n.º 3
0
 public MethodMembersShouldConjunction BeCalledBy(IObjectProvider <IType> types)
 {
     _ruleCreator.AddCondition(MethodMemberConditionsDefinition.BeCalledBy(types));
     return(new MethodMembersShouldConjunction(_ruleCreator));
 }
Ejemplo n.º 4
0
 public MethodMembersShouldConjunction BeCalledBy(IEnumerable <string> patterns,
                                                  bool useRegularExpressions = false)
 {
     _ruleCreator.AddCondition(MethodMemberConditionsDefinition.BeCalledBy(patterns, useRegularExpressions));
     return(new MethodMembersShouldConjunction(_ruleCreator));
 }