|
44 | 44 | * [AreNotSealed](#PredicateAreNotSealed)
|
45 | 45 | * [AreNotStatic](#PredicateAreNotStatic)
|
46 | 46 | * [AreNotStructures](#PredicateAreNotStructures)
|
| 47 | +* [AreNotUsedByAny](#PredicateAreNotUsedByAny) |
47 | 48 | * [AreOfType](#PredicateAreOfType)
|
48 | 49 | * [ArePrivate](#PredicateArePrivate)
|
49 | 50 | * [ArePrivateProtected](#PredicateArePrivateProtected)
|
|
54 | 55 | * [AreStateless](#PredicateAreStateless)
|
55 | 56 | * [AreStatic](#PredicateAreStatic)
|
56 | 57 | * [AreStructures](#PredicateAreStructures)
|
| 58 | +* [AreUsedByAny](#PredicateAreUsedByAny) |
57 | 59 | * [DoNotHaveCustomAttribute](#PredicateDoNotHaveCustomAttribute)
|
58 | 60 | * [DoNotHaveCustomAttribute<T>](#PredicateDoNotHaveCustomAttribute)
|
59 | 61 | * [DoNotHaveCustomAttributeOrInherit](#PredicateDoNotHaveCustomAttributeOrInherit)
|
|
130 | 132 | * [BeStateless](#ConditionBeStateless)
|
131 | 133 | * [BeStatic](#ConditionBeStatic)
|
132 | 134 | * [BeStructures](#ConditionBeStructures)
|
| 135 | +* [BeUsedByAny](#ConditionBeUsedByAny) |
133 | 136 | * [HaveCustomAttribute](#ConditionHaveCustomAttribute)
|
134 | 137 | * [HaveCustomAttribute<T>](#ConditionHaveCustomAttribute)
|
135 | 138 | * [HaveCustomAttributeOrInherit](#ConditionHaveCustomAttributeOrInherit)
|
|
168 | 171 | * [NotBeSealed](#ConditionNotBeSealed)
|
169 | 172 | * [NotBeStatic](#ConditionNotBeStatic)
|
170 | 173 | * [NotBeStructures](#ConditionNotBeStructures)
|
| 174 | +* [NotBeUsedByAny](#ConditionNotBeUsedByAny) |
171 | 175 | * [NotHaveCustomAttribute](#ConditionNotHaveCustomAttribute)
|
172 | 176 | * [NotHaveCustomAttribute<T>](#ConditionNotHaveCustomAttribute)
|
173 | 177 | * [NotHaveCustomAttributeOrInherit](#ConditionNotHaveCustomAttributeOrInherit)
|
|
205 | 209 |
|
206 | 210 | * [FailingTypes](#TestResultFailingTypes)
|
207 | 211 | * [IsSuccessful](#TestResultIsSuccessful)
|
| 212 | +* [LoadedTypes](#TestResultLoadedTypes) |
| 213 | +* [SelectedTypesForTesting](#TestResultSelectedTypesForTesting) |
208 | 214 |
|
209 | 215 | ## IType
|
210 | 216 |
|
@@ -421,6 +427,11 @@ Selects types that are not static.
|
421 | 427 | PredicateList Predicate.AreNotStructures()
|
422 | 428 | ```
|
423 | 429 | Selects types that are not structures.
|
| 430 | +### Predicate.AreNotUsedByAny |
| 431 | +```csharp |
| 432 | +PredicateList Predicate.AreNotUsedByAny(params string[] users) |
| 433 | +``` |
| 434 | +Selects types that are not used by any of the supplied types. |
424 | 435 | ### Predicate.AreOfType
|
425 | 436 | ```csharp
|
426 | 437 | PredicateList Predicate.AreOfType(params Type[] type)
|
@@ -471,6 +482,11 @@ Selects types that are static.
|
471 | 482 | PredicateList Predicate.AreStructures()
|
472 | 483 | ```
|
473 | 484 | Selects types that are structures.
|
| 485 | +### Predicate.AreUsedByAny |
| 486 | +```csharp |
| 487 | +PredicateList Predicate.AreUsedByAny(params string[] users) |
| 488 | +``` |
| 489 | +Selects types that are used by any of the supplied types. |
474 | 490 | ### Predicate.DoNotHaveCustomAttribute
|
475 | 491 | ```csharp
|
476 | 492 | PredicateList Predicate.DoNotHaveCustomAttribute(Type attribute)
|
@@ -825,6 +841,11 @@ Selects types that are static.
|
825 | 841 | ConditionList Condition.BeStructures()
|
826 | 842 | ```
|
827 | 843 | Selects types that are structures.
|
| 844 | +### Condition.BeUsedByAny |
| 845 | +```csharp |
| 846 | +ConditionList Condition.BeUsedByAny(params string[] users) |
| 847 | +``` |
| 848 | +Selects types that are used by any of the supplied types. |
828 | 849 | ### Condition.HaveCustomAttribute
|
829 | 850 | ```csharp
|
830 | 851 | ConditionList Condition.HaveCustomAttribute(Type attribute)
|
@@ -922,12 +943,12 @@ ConditionList Condition.Inherit<T>()
|
922 | 943 | Selects types that inherit a particular type.
|
923 | 944 | ### Condition.MeetCustomRule
|
924 | 945 | ```csharp
|
925 |
| -ConditionList Condition.MeetCustomRule(Func<TypeDefinition, bool> rule) |
| 946 | +ConditionList Condition.MeetCustomRule(ICustomRule rule) |
926 | 947 | ```
|
927 | 948 | Selects types that meet a custom rule.
|
928 | 949 | ### Condition.MeetCustomRule
|
929 | 950 | ```csharp
|
930 |
| -ConditionList Condition.MeetCustomRule(ICustomRule rule) |
| 951 | +ConditionList Condition.MeetCustomRule(Func<TypeDefinition, bool> rule) |
931 | 952 | ```
|
932 | 953 | Selects types that meet a custom rule.
|
933 | 954 | ### Condition.NotBeAbstract
|
@@ -1015,6 +1036,11 @@ Selects types that are not static.
|
1015 | 1036 | ConditionList Condition.NotBeStructures()
|
1016 | 1037 | ```
|
1017 | 1038 | Selects types that are not structures.
|
| 1039 | +### Condition.NotBeUsedByAny |
| 1040 | +```csharp |
| 1041 | +ConditionList Condition.NotBeUsedByAny(params string[] users) |
| 1042 | +``` |
| 1043 | +Selects types that are not used by any of the particular types. |
1018 | 1044 | ### Condition.NotHaveCustomAttribute
|
1019 | 1045 | ```csharp
|
1020 | 1046 | ConditionList Condition.NotHaveCustomAttribute(Type attribute)
|
@@ -1174,6 +1200,16 @@ Gets a list of the types that failed the test.
|
1174 | 1200 | IsSuccessful
|
1175 | 1201 | ```
|
1176 | 1202 | Gets a flag indicating the success or failure of the test.
|
| 1203 | +### TestResult.LoadedTypes |
| 1204 | +```csharp |
| 1205 | +LoadedTypes |
| 1206 | +``` |
| 1207 | +Gets a list of all the types that were loded by <see cref="T:NetArchTest.Rules.Types"/>. |
| 1208 | +### TestResult.SelectedTypesForTesting |
| 1209 | +```csharp |
| 1210 | +SelectedTypesForTesting |
| 1211 | +``` |
| 1212 | +Gets a list of the types that passed filtering by predicates and were used as input to conditions. |
1177 | 1213 |
|
1178 | 1214 | ## IType
|
1179 | 1215 | ### IType.Explanation
|
|
0 commit comments