|
6 | 6 |
|
7 | 7 | namespace ArchUnitNET.Fluent.Syntax.Elements |
8 | 8 | { |
9 | | - public interface IAddObjectPredicate<out TReturnType, TRuleType> |
| 9 | + public interface IAddObjectPredicate<out TNextElement, TRuleType> |
10 | 10 | where TRuleType : ICanBeAnalyzed |
11 | 11 | { |
12 | 12 | // csharpier-ignore-start |
13 | 13 |
|
14 | | - TReturnType FollowCustomPredicate(IPredicate<TRuleType> predicate); |
15 | | - TReturnType FollowCustomPredicate(Func<TRuleType, bool> predicate, string description); |
16 | | - |
17 | | - TReturnType Are(params ICanBeAnalyzed[] objects); |
18 | | - TReturnType Are(IEnumerable<ICanBeAnalyzed> objects); |
19 | | - TReturnType Are(IObjectProvider<ICanBeAnalyzed> objects); |
20 | | - |
21 | | - TReturnType CallAny(params MethodMember[] methods); |
22 | | - TReturnType CallAny(IEnumerable<MethodMember> methods); |
23 | | - TReturnType CallAny(IObjectProvider<MethodMember> methods); |
24 | | - |
25 | | - TReturnType DependOnAny(); |
26 | | - TReturnType DependOnAny(params IType[] types); |
27 | | - TReturnType DependOnAny(params Type[] types); |
28 | | - TReturnType DependOnAny(IEnumerable<IType> types); |
29 | | - TReturnType DependOnAny(IEnumerable<Type> types); |
30 | | - TReturnType DependOnAny(IObjectProvider<IType> types); |
31 | | - |
32 | | - TReturnType OnlyDependOn(); |
33 | | - TReturnType OnlyDependOn(params IType[] types); |
34 | | - TReturnType OnlyDependOn(params Type[] types); |
35 | | - TReturnType OnlyDependOn(IEnumerable<IType> types); |
36 | | - TReturnType OnlyDependOn(IEnumerable<Type> types); |
37 | | - TReturnType OnlyDependOn(IObjectProvider<IType> types); |
38 | | - |
39 | | - TReturnType HaveAnyAttributes(); |
40 | | - TReturnType HaveAnyAttributes(params Attribute[] attributes); |
41 | | - TReturnType HaveAnyAttributes(params Type[] attributes); |
42 | | - TReturnType HaveAnyAttributes(IEnumerable<Attribute> attributes); |
43 | | - TReturnType HaveAnyAttributes(IEnumerable<Type> attributes); |
44 | | - TReturnType HaveAnyAttributes(IObjectProvider<Attribute> attributes); |
45 | | - |
46 | | - TReturnType OnlyHaveAttributes(); |
47 | | - TReturnType OnlyHaveAttributes(params Attribute[] attributes); |
48 | | - TReturnType OnlyHaveAttributes(params Type[] attributes); |
49 | | - TReturnType OnlyHaveAttributes(IEnumerable<Attribute> attributes); |
50 | | - TReturnType OnlyHaveAttributes(IEnumerable<Type> attributes); |
51 | | - TReturnType OnlyHaveAttributes(IObjectProvider<Attribute> attributes); |
52 | | - |
53 | | - TReturnType HaveAnyAttributesWithArguments(IEnumerable<object> argumentValues); |
54 | | - |
55 | | - TReturnType HaveAttributeWithArguments(Attribute attribute, IEnumerable<object> argumentValues); |
56 | | - TReturnType HaveAttributeWithArguments(Type attribute, IEnumerable<object> argumentValues); |
57 | | - |
58 | | - TReturnType HaveAnyAttributesWithNamedArguments(IEnumerable<(string, object)> attributeArguments); |
59 | | - TReturnType HaveAnyAttributesWithNamedArguments(params (string, object)[] attributeArguments); |
60 | | - |
61 | | - TReturnType HaveAttributeWithNamedArguments(Attribute attribute, IEnumerable<(string, object)> attributeArguments); |
62 | | - TReturnType HaveAttributeWithNamedArguments(Attribute attribute, params (string, object)[] attributeArguments); |
63 | | - TReturnType HaveAttributeWithNamedArguments(Type attribute, IEnumerable<(string, object)> attributeArguments); |
64 | | - TReturnType HaveAttributeWithNamedArguments(Type attribute, params (string, object)[] attributeArguments); |
65 | | - |
66 | | - TReturnType HaveName(string name); |
67 | | - TReturnType HaveNameMatching(string pattern); |
68 | | - TReturnType HaveNameStartingWith(string pattern); |
69 | | - TReturnType HaveNameEndingWith(string pattern); |
70 | | - TReturnType HaveNameContaining(string pattern); |
71 | | - |
72 | | - TReturnType HaveFullName(string fullName); |
73 | | - TReturnType HaveFullNameMatching(string pattern); |
74 | | - TReturnType HaveFullNameStartingWith(string pattern); |
75 | | - TReturnType HaveFullNameEndingWith(string pattern); |
76 | | - TReturnType HaveFullNameContaining(string pattern); |
77 | | - |
78 | | - TReturnType HaveAssemblyQualifiedName(string assemblyQualifiedName); |
79 | | - TReturnType HaveAssemblyQualifiedNameMatching(string pattern); |
80 | | - TReturnType HaveAssemblyQualifiedNameStartingWith(string pattern); |
81 | | - TReturnType HaveAssemblyQualifiedNameEndingWith(string pattern); |
82 | | - TReturnType HaveAssemblyQualifiedNameContaining(string pattern); |
83 | | - |
84 | | - TReturnType ArePrivate(); |
85 | | - TReturnType ArePublic(); |
86 | | - TReturnType AreProtected(); |
87 | | - TReturnType AreInternal(); |
88 | | - TReturnType AreProtectedInternal(); |
89 | | - TReturnType ArePrivateProtected(); |
| 14 | + TNextElement FollowCustomPredicate(IPredicate<TRuleType> predicate); |
| 15 | + TNextElement FollowCustomPredicate(Func<TRuleType, bool> predicate, string description); |
| 16 | + |
| 17 | + TNextElement Are(params ICanBeAnalyzed[] objects); |
| 18 | + TNextElement Are(IEnumerable<ICanBeAnalyzed> objects); |
| 19 | + TNextElement Are(IObjectProvider<ICanBeAnalyzed> objects); |
| 20 | + |
| 21 | + TNextElement CallAny(params MethodMember[] methods); |
| 22 | + TNextElement CallAny(IEnumerable<MethodMember> methods); |
| 23 | + TNextElement CallAny(IObjectProvider<MethodMember> methods); |
| 24 | + |
| 25 | + TNextElement DependOnAny(); |
| 26 | + TNextElement DependOnAny(params IType[] types); |
| 27 | + TNextElement DependOnAny(params Type[] types); |
| 28 | + TNextElement DependOnAny(IEnumerable<IType> types); |
| 29 | + TNextElement DependOnAny(IEnumerable<Type> types); |
| 30 | + TNextElement DependOnAny(IObjectProvider<IType> types); |
| 31 | + |
| 32 | + TNextElement OnlyDependOn(); |
| 33 | + TNextElement OnlyDependOn(params IType[] types); |
| 34 | + TNextElement OnlyDependOn(params Type[] types); |
| 35 | + TNextElement OnlyDependOn(IEnumerable<IType> types); |
| 36 | + TNextElement OnlyDependOn(IEnumerable<Type> types); |
| 37 | + TNextElement OnlyDependOn(IObjectProvider<IType> types); |
| 38 | + |
| 39 | + TNextElement HaveAnyAttributes(); |
| 40 | + TNextElement HaveAnyAttributes(params Attribute[] attributes); |
| 41 | + TNextElement HaveAnyAttributes(params Type[] attributes); |
| 42 | + TNextElement HaveAnyAttributes(IEnumerable<Attribute> attributes); |
| 43 | + TNextElement HaveAnyAttributes(IEnumerable<Type> attributes); |
| 44 | + TNextElement HaveAnyAttributes(IObjectProvider<Attribute> attributes); |
| 45 | + |
| 46 | + TNextElement OnlyHaveAttributes(); |
| 47 | + TNextElement OnlyHaveAttributes(params Attribute[] attributes); |
| 48 | + TNextElement OnlyHaveAttributes(params Type[] attributes); |
| 49 | + TNextElement OnlyHaveAttributes(IEnumerable<Attribute> attributes); |
| 50 | + TNextElement OnlyHaveAttributes(IEnumerable<Type> attributes); |
| 51 | + TNextElement OnlyHaveAttributes(IObjectProvider<Attribute> attributes); |
| 52 | + |
| 53 | + TNextElement HaveAnyAttributesWithArguments(IEnumerable<object> argumentValues); |
| 54 | + |
| 55 | + TNextElement HaveAttributeWithArguments(Attribute attribute, IEnumerable<object> argumentValues); |
| 56 | + TNextElement HaveAttributeWithArguments(Type attribute, IEnumerable<object> argumentValues); |
| 57 | + |
| 58 | + TNextElement HaveAnyAttributesWithNamedArguments(IEnumerable<(string, object)> attributeArguments); |
| 59 | + TNextElement HaveAnyAttributesWithNamedArguments(params (string, object)[] attributeArguments); |
| 60 | + |
| 61 | + TNextElement HaveAttributeWithNamedArguments(Attribute attribute, IEnumerable<(string, object)> attributeArguments); |
| 62 | + TNextElement HaveAttributeWithNamedArguments(Attribute attribute, params (string, object)[] attributeArguments); |
| 63 | + TNextElement HaveAttributeWithNamedArguments(Type attribute, IEnumerable<(string, object)> attributeArguments); |
| 64 | + TNextElement HaveAttributeWithNamedArguments(Type attribute, params (string, object)[] attributeArguments); |
| 65 | + |
| 66 | + TNextElement HaveName(string name); |
| 67 | + TNextElement HaveNameMatching(string pattern); |
| 68 | + TNextElement HaveNameStartingWith(string pattern); |
| 69 | + TNextElement HaveNameEndingWith(string pattern); |
| 70 | + TNextElement HaveNameContaining(string pattern); |
| 71 | + |
| 72 | + TNextElement HaveFullName(string fullName); |
| 73 | + TNextElement HaveFullNameMatching(string pattern); |
| 74 | + TNextElement HaveFullNameStartingWith(string pattern); |
| 75 | + TNextElement HaveFullNameEndingWith(string pattern); |
| 76 | + TNextElement HaveFullNameContaining(string pattern); |
| 77 | + |
| 78 | + TNextElement HaveAssemblyQualifiedName(string assemblyQualifiedName); |
| 79 | + TNextElement HaveAssemblyQualifiedNameMatching(string pattern); |
| 80 | + TNextElement HaveAssemblyQualifiedNameStartingWith(string pattern); |
| 81 | + TNextElement HaveAssemblyQualifiedNameEndingWith(string pattern); |
| 82 | + TNextElement HaveAssemblyQualifiedNameContaining(string pattern); |
| 83 | + |
| 84 | + TNextElement ArePrivate(); |
| 85 | + TNextElement ArePublic(); |
| 86 | + TNextElement AreProtected(); |
| 87 | + TNextElement AreInternal(); |
| 88 | + TNextElement AreProtectedInternal(); |
| 89 | + TNextElement ArePrivateProtected(); |
90 | 90 |
|
91 | 91 | //Negations |
92 | 92 |
|
93 | | - TReturnType AreNot(params ICanBeAnalyzed[] objects); |
94 | | - TReturnType AreNot(IEnumerable<ICanBeAnalyzed> objects); |
95 | | - TReturnType AreNot(IObjectProvider<ICanBeAnalyzed> objects); |
96 | | - |
97 | | - TReturnType DoNotCallAny(params MethodMember[] methods); |
98 | | - TReturnType DoNotCallAny(IEnumerable<MethodMember> methods); |
99 | | - TReturnType DoNotCallAny(IObjectProvider<MethodMember> methods); |
100 | | - |
101 | | - TReturnType DoNotDependOnAny(); |
102 | | - TReturnType DoNotDependOnAny(params IType[] types); |
103 | | - TReturnType DoNotDependOnAny(params Type[] types); |
104 | | - TReturnType DoNotDependOnAny(IObjectProvider<IType> types); |
105 | | - TReturnType DoNotDependOnAny(IEnumerable<IType> types); |
106 | | - TReturnType DoNotDependOnAny(IEnumerable<Type> types); |
107 | | - |
108 | | - TReturnType DoNotHaveAnyAttributes(); |
109 | | - TReturnType DoNotHaveAnyAttributes(params Attribute[] attributes); |
110 | | - TReturnType DoNotHaveAnyAttributes(params Type[] attributes); |
111 | | - TReturnType DoNotHaveAnyAttributes(IObjectProvider<Attribute> attributes); |
112 | | - TReturnType DoNotHaveAnyAttributes(IEnumerable<Attribute> attributes); |
113 | | - TReturnType DoNotHaveAnyAttributes(IEnumerable<Type> attributes); |
114 | | - |
115 | | - TReturnType DoNotHaveAnyAttributesWithArguments(IEnumerable<object> argumentValues); |
116 | | - |
117 | | - TReturnType DoNotHaveAttributeWithArguments(Attribute attribute, IEnumerable<object> argumentValues); |
118 | | - TReturnType DoNotHaveAttributeWithArguments(Type attribute, IEnumerable<object> argumentValues); |
119 | | - |
120 | | - TReturnType DoNotHaveAnyAttributesWithNamedArguments(IEnumerable<(string, object)> attributeArguments); |
121 | | - TReturnType DoNotHaveAnyAttributesWithNamedArguments(params (string, object)[] attributeArguments); |
122 | | - |
123 | | - TReturnType DoNotHaveAttributeWithNamedArguments(Attribute attribute, IEnumerable<(string, object)> attributeArguments); |
124 | | - TReturnType DoNotHaveAttributeWithNamedArguments(Attribute attribute, params (string, object)[] attributeArguments); |
125 | | - TReturnType DoNotHaveAttributeWithNamedArguments(Type attribute, IEnumerable<(string, object)> attributeArguments); |
126 | | - TReturnType DoNotHaveAttributeWithNamedArguments(Type attribute, params (string, object)[] attributeArguments); |
127 | | - |
128 | | - TReturnType DoNotHaveName(string name); |
129 | | - TReturnType DoNotHaveNameMatching(string pattern); |
130 | | - TReturnType DoNotHaveNameStartingWith(string pattern); |
131 | | - TReturnType DoNotHaveNameEndingWith(string pattern); |
132 | | - TReturnType DoNotHaveNameContaining(string pattern); |
133 | | - |
134 | | - TReturnType DoNotHaveFullName(string fullName); |
135 | | - TReturnType DoNotHaveFullNameMatching(string pattern); |
136 | | - TReturnType DoNotHaveFullNameStartingWith(string pattern); |
137 | | - TReturnType DoNotHaveFullNameEndingWith(string pattern); |
138 | | - TReturnType DoNotHaveFullNameContaining(string pattern); |
139 | | - |
140 | | - TReturnType DoNotHaveAssemblyQualifiedName(string assemblyQualifiedName); |
141 | | - TReturnType DoNotHaveAssemblyQualifiedNameMatching(string pattern); |
142 | | - TReturnType DoNotHaveAssemblyQualifiedNameStartingWith(string pattern); |
143 | | - TReturnType DoNotHaveAssemblyQualifiedNameEndingWith(string pattern); |
144 | | - TReturnType DoNotHaveAssemblyQualifiedNameContaining(string pattern); |
145 | | - |
146 | | - TReturnType AreNotPrivate(); |
147 | | - TReturnType AreNotPublic(); |
148 | | - TReturnType AreNotProtected(); |
149 | | - TReturnType AreNotInternal(); |
150 | | - TReturnType AreNotProtectedInternal(); |
151 | | - TReturnType AreNotPrivateProtected(); |
| 93 | + TNextElement AreNot(params ICanBeAnalyzed[] objects); |
| 94 | + TNextElement AreNot(IEnumerable<ICanBeAnalyzed> objects); |
| 95 | + TNextElement AreNot(IObjectProvider<ICanBeAnalyzed> objects); |
| 96 | + |
| 97 | + TNextElement DoNotCallAny(params MethodMember[] methods); |
| 98 | + TNextElement DoNotCallAny(IEnumerable<MethodMember> methods); |
| 99 | + TNextElement DoNotCallAny(IObjectProvider<MethodMember> methods); |
| 100 | + |
| 101 | + TNextElement DoNotDependOnAny(); |
| 102 | + TNextElement DoNotDependOnAny(params IType[] types); |
| 103 | + TNextElement DoNotDependOnAny(params Type[] types); |
| 104 | + TNextElement DoNotDependOnAny(IObjectProvider<IType> types); |
| 105 | + TNextElement DoNotDependOnAny(IEnumerable<IType> types); |
| 106 | + TNextElement DoNotDependOnAny(IEnumerable<Type> types); |
| 107 | + |
| 108 | + TNextElement DoNotHaveAnyAttributes(); |
| 109 | + TNextElement DoNotHaveAnyAttributes(params Attribute[] attributes); |
| 110 | + TNextElement DoNotHaveAnyAttributes(params Type[] attributes); |
| 111 | + TNextElement DoNotHaveAnyAttributes(IObjectProvider<Attribute> attributes); |
| 112 | + TNextElement DoNotHaveAnyAttributes(IEnumerable<Attribute> attributes); |
| 113 | + TNextElement DoNotHaveAnyAttributes(IEnumerable<Type> attributes); |
| 114 | + |
| 115 | + TNextElement DoNotHaveAnyAttributesWithArguments(IEnumerable<object> argumentValues); |
| 116 | + |
| 117 | + TNextElement DoNotHaveAttributeWithArguments(Attribute attribute, IEnumerable<object> argumentValues); |
| 118 | + TNextElement DoNotHaveAttributeWithArguments(Type attribute, IEnumerable<object> argumentValues); |
| 119 | + |
| 120 | + TNextElement DoNotHaveAnyAttributesWithNamedArguments(IEnumerable<(string, object)> attributeArguments); |
| 121 | + TNextElement DoNotHaveAnyAttributesWithNamedArguments(params (string, object)[] attributeArguments); |
| 122 | + |
| 123 | + TNextElement DoNotHaveAttributeWithNamedArguments(Attribute attribute, IEnumerable<(string, object)> attributeArguments); |
| 124 | + TNextElement DoNotHaveAttributeWithNamedArguments(Attribute attribute, params (string, object)[] attributeArguments); |
| 125 | + TNextElement DoNotHaveAttributeWithNamedArguments(Type attribute, IEnumerable<(string, object)> attributeArguments); |
| 126 | + TNextElement DoNotHaveAttributeWithNamedArguments(Type attribute, params (string, object)[] attributeArguments); |
| 127 | + |
| 128 | + TNextElement DoNotHaveName(string name); |
| 129 | + TNextElement DoNotHaveNameMatching(string pattern); |
| 130 | + TNextElement DoNotHaveNameStartingWith(string pattern); |
| 131 | + TNextElement DoNotHaveNameEndingWith(string pattern); |
| 132 | + TNextElement DoNotHaveNameContaining(string pattern); |
| 133 | + |
| 134 | + TNextElement DoNotHaveFullName(string fullName); |
| 135 | + TNextElement DoNotHaveFullNameMatching(string pattern); |
| 136 | + TNextElement DoNotHaveFullNameStartingWith(string pattern); |
| 137 | + TNextElement DoNotHaveFullNameEndingWith(string pattern); |
| 138 | + TNextElement DoNotHaveFullNameContaining(string pattern); |
| 139 | + |
| 140 | + TNextElement DoNotHaveAssemblyQualifiedName(string assemblyQualifiedName); |
| 141 | + TNextElement DoNotHaveAssemblyQualifiedNameMatching(string pattern); |
| 142 | + TNextElement DoNotHaveAssemblyQualifiedNameStartingWith(string pattern); |
| 143 | + TNextElement DoNotHaveAssemblyQualifiedNameEndingWith(string pattern); |
| 144 | + TNextElement DoNotHaveAssemblyQualifiedNameContaining(string pattern); |
| 145 | + |
| 146 | + TNextElement AreNotPrivate(); |
| 147 | + TNextElement AreNotPublic(); |
| 148 | + TNextElement AreNotProtected(); |
| 149 | + TNextElement AreNotInternal(); |
| 150 | + TNextElement AreNotProtectedInternal(); |
| 151 | + TNextElement AreNotPrivateProtected(); |
152 | 152 |
|
153 | 153 | // csharpier-ignore-end |
154 | 154 | } |
|
0 commit comments