public TGivenRuleTypeConjunction DoNotHaveFullName(string fullname)
 {
     _ruleCreator.AddPredicate(ObjectPredicatesDefinition <TRuleType> .DoNotHaveFullName(fullname));
     return(Create <TGivenRuleTypeConjunction, TRuleType>(_ruleCreator));
 }
 public TGivenRuleTypeConjunction CallAny(string pattern, bool useRegularExpressions = false)
 {
     _ruleCreator.AddPredicate(
         ObjectPredicatesDefinition <TRuleType> .CallAny(pattern, useRegularExpressions));
     return(Create <TGivenRuleTypeConjunction, TRuleType>(_ruleCreator));
 }
 public TGivenRuleTypeConjunction OnlyDependOn(IObjectProvider <IType> types)
 {
     _ruleCreator.AddPredicate(ObjectPredicatesDefinition <TRuleType> .OnlyDependOn(types));
     return(Create <TGivenRuleTypeConjunction, TRuleType>(_ruleCreator));
 }
 public TGivenRuleTypeConjunction DoNotHaveAnyAttributes(IEnumerable <Type> attributes)
 {
     _ruleCreator.AddPredicate(ObjectPredicatesDefinition <TRuleType> .DoNotHaveAnyAttributes(attributes));
     return(Create <TGivenRuleTypeConjunction, TRuleType>(_ruleCreator));
 }
 public TGivenRuleTypeConjunction DependOnAny(IEnumerable <string> patterns, bool useRegularExpressions = false)
 {
     _ruleCreator.AddPredicate(
         ObjectPredicatesDefinition <TRuleType> .DependOnAny(patterns, useRegularExpressions));
     return(Create <TGivenRuleTypeConjunction, TRuleType>(_ruleCreator));
 }
Example #6
0
 public TRuleTypeShouldConjunction DependOnAny(IType firstType, params IType[] moreTypes)
 {
     _ruleCreator.ContinueComplexCondition(
         ObjectPredicatesDefinition <TReferenceType> .DependOnAny(firstType, moreTypes));
     return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator));
 }
 public TGivenRuleTypeConjunction DoNotCallAny(IEnumerable <MethodMember> methods)
 {
     _ruleCreator.AddPredicate(ObjectPredicatesDefinition <TRuleType> .DoNotCallAny(methods));
     return(Create <TGivenRuleTypeConjunction, TRuleType>(_ruleCreator));
 }
 public TGivenRuleTypeConjunction CallAny(MethodMember method, params MethodMember[] moreMethods)
 {
     _ruleCreator.AddPredicate(ObjectPredicatesDefinition <TRuleType> .CallAny(method, moreMethods));
     return(Create <TGivenRuleTypeConjunction, TRuleType>(_ruleCreator));
 }
 public TGivenRuleTypeConjunction AreInternal()
 {
     _ruleCreator.AddPredicate(ObjectPredicatesDefinition <TRuleType> .AreInternal());
     return(Create <TGivenRuleTypeConjunction, TRuleType>(_ruleCreator));
 }
 public TGivenRuleTypeConjunction AreNot(ICanBeAnalyzed firstObject, params ICanBeAnalyzed[] moreObjects)
 {
     _ruleCreator.AddPredicate(ObjectPredicatesDefinition <TRuleType> .AreNot(firstObject, moreObjects));
     return(Create <TGivenRuleTypeConjunction, TRuleType>(_ruleCreator));
 }
 public TGivenRuleTypeConjunction HaveNameEndingWith(string pattern)
 {
     _ruleCreator.AddPredicate(ObjectPredicatesDefinition <TRuleType> .HaveNameEndingWith(pattern));
     return(Create <TGivenRuleTypeConjunction, TRuleType>(_ruleCreator));
 }
 public TGivenRuleTypeConjunction HaveName(string name)
 {
     _ruleCreator.AddPredicate(ObjectPredicatesDefinition <TRuleType> .HaveName(name));
     return(Create <TGivenRuleTypeConjunction, TRuleType>(_ruleCreator));
 }
 public TGivenRuleTypeConjunction OnlyHaveAttributes(IObjectProvider <Attribute> attributes)
 {
     _ruleCreator.AddPredicate(ObjectPredicatesDefinition <TRuleType> .OnlyHaveAttributes(attributes));
     return(Create <TGivenRuleTypeConjunction, TRuleType>(_ruleCreator));
 }
 public TGivenRuleTypeConjunction DoNotHaveFullNameContaining(string pattern)
 {
     _ruleCreator.AddPredicate(ObjectPredicatesDefinition <TRuleType> .DoNotHaveFullNameContaining(pattern));
     return(Create <TGivenRuleTypeConjunction, TRuleType>(_ruleCreator));
 }
 public TGivenRuleTypeConjunction DoNotDependOnAny(IType firstType, params IType[] moreTypes)
 {
     _ruleCreator.AddPredicate(ObjectPredicatesDefinition <TRuleType> .DoNotDependOnAny(firstType, moreTypes));
     return(Create <TGivenRuleTypeConjunction, TRuleType>(_ruleCreator));
 }
 public TGivenRuleTypeConjunction AreNotPrivateProtected()
 {
     _ruleCreator.AddPredicate(ObjectPredicatesDefinition <TRuleType> .AreNotPrivateProtected());
     return(Create <TGivenRuleTypeConjunction, TRuleType>(_ruleCreator));
 }
 public TGivenRuleTypeConjunction DoNotDependOnAny(IEnumerable <Type> types)
 {
     _ruleCreator.AddPredicate(ObjectPredicatesDefinition <TRuleType> .DoNotDependOnAny(types));
     return(Create <TGivenRuleTypeConjunction, TRuleType>(_ruleCreator));
 }
 public TGivenRuleTypeConjunction CallAny(IObjectProvider <MethodMember> methods)
 {
     _ruleCreator.AddPredicate(ObjectPredicatesDefinition <TRuleType> .CallAny(methods));
     return(Create <TGivenRuleTypeConjunction, TRuleType>(_ruleCreator));
 }
 public TGivenRuleTypeConjunction Are(IObjectProvider <ICanBeAnalyzed> objects)
 {
     _ruleCreator.AddPredicate(ObjectPredicatesDefinition <TRuleType> .Are(objects));
     return(Create <TGivenRuleTypeConjunction, TRuleType>(_ruleCreator));
 }
Example #20
0
 public TRuleTypeShouldConjunction DependOnAny(IEnumerable <string> patterns, bool useRegularExpressions = false)
 {
     _ruleCreator.ContinueComplexCondition(
         ObjectPredicatesDefinition <TReferenceType> .DependOnAny(patterns, useRegularExpressions));
     return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator));
 }
 public TGivenRuleTypeConjunction DoNotHaveAnyAttributes(Type firstAttribute, params Type[] moreAttributes)
 {
     _ruleCreator.AddPredicate(
         ObjectPredicatesDefinition <TRuleType> .DoNotHaveAnyAttributes(firstAttribute, moreAttributes));
     return(Create <TGivenRuleTypeConjunction, TRuleType>(_ruleCreator));
 }
Example #22
0
 public TRuleTypeShouldConjunction DependOnAny(IObjectProvider <IType> types)
 {
     _ruleCreator.ContinueComplexCondition(ObjectPredicatesDefinition <TReferenceType> .DependOnAny(types));
     return(Create <TRuleTypeShouldConjunction, TRuleType>(_ruleCreator));
 }
 public TGivenRuleTypeConjunction FollowCustomPredicate(Func <TRuleType, bool> predicate, string description)
 {
     _ruleCreator.AddPredicate(
         ObjectPredicatesDefinition <TRuleType> .FollowCustomPredicate(predicate, description));
     return(Create <TGivenRuleTypeConjunction, TRuleType>(_ruleCreator));
 }