diff --git a/src/NetArchTest.Rules/Conditions.cs b/src/NetArchTest.Rules/Conditions.cs index 3663fa7..1082d3d 100644 --- a/src/NetArchTest.Rules/Conditions.cs +++ b/src/NetArchTest.Rules/Conditions.cs @@ -474,7 +474,7 @@ public ConditionList HaveDependencyOn(string dependency) /// /// The dependencies to match against. These can be namespaces or specific types. /// An updated set of conditions that can be applied to a list of types. - public ConditionList HaveDependencyOnAny(string[] dependencies) + public ConditionList HaveDependencyOnAny(params string[] dependencies) { _sequence.AddFunctionCall(FunctionDelegates.HaveDependencyOnAny, dependencies, true); return new ConditionList(_types, _should, _sequence); @@ -485,7 +485,7 @@ public ConditionList HaveDependencyOnAny(string[] dependencies) /// /// The dependencies to match against. These can be namespaces or specific types. /// An updated set of conditions that can be applied to a list of types. - public ConditionList HaveDependencyOnAll(string[] dependencies) + public ConditionList HaveDependencyOnAll(params string[] dependencies) { _sequence.AddFunctionCall(FunctionDelegates.HaveDependencyOnAll, dependencies, true); return new ConditionList(_types, _should, _sequence); @@ -506,7 +506,7 @@ public ConditionList NotHaveDependencyOn(string dependency) /// /// The dependencies to match against. These can be namespaces or specific types. /// An updated set of conditions that can be applied to a list of types. - public ConditionList NotHaveDependencyOnAny(string[] dependencies) + public ConditionList NotHaveDependencyOnAny(params string[] dependencies) { _sequence.AddFunctionCall(FunctionDelegates.HaveDependencyOnAny, dependencies, false); return new ConditionList(_types, _should, _sequence); @@ -517,7 +517,7 @@ public ConditionList NotHaveDependencyOnAny(string[] dependencies) /// /// The dependencies to match against. These can be namespaces or specific types. /// An updated set of conditions that can be applied to a list of types. - public ConditionList NotHaveDependencyOnAll(string[] dependencies) + public ConditionList NotHaveDependencyOnAll(params string[] dependencies) { _sequence.AddFunctionCall(FunctionDelegates.HaveDependencyOnAll, dependencies, false); return new ConditionList(_types, _should, _sequence); diff --git a/src/NetArchTest.Rules/Predicates.cs b/src/NetArchTest.Rules/Predicates.cs index b9a4b1d..634c73f 100644 --- a/src/NetArchTest.Rules/Predicates.cs +++ b/src/NetArchTest.Rules/Predicates.cs @@ -478,7 +478,7 @@ public PredicateList HaveDependencyOn(string dependency) /// /// The dependencies to match against. These can be namespaces or specific types. /// An updated set of conditions that can be applied to a list of types. - public PredicateList HaveDependencyOnAny(string[] dependencies) + public PredicateList HaveDependencyOnAny(params string[] dependencies) { _sequence.AddFunctionCall(FunctionDelegates.HaveDependencyOnAny, dependencies, true); return new PredicateList(_types, _sequence); @@ -489,7 +489,7 @@ public PredicateList HaveDependencyOnAny(string[] dependencies) /// /// The dependencies to match against. These can be namespaces or specific types. /// An updated set of conditions that can be applied to a list of types. - public PredicateList HaveDependencyOnAll(string[] dependencies) + public PredicateList HaveDependencyOnAll(params string[] dependencies) { _sequence.AddFunctionCall(FunctionDelegates.HaveDependencyOnAll, dependencies, true); return new PredicateList(_types, _sequence); @@ -511,7 +511,7 @@ public PredicateList DoNotHaveDependencyOn(string dependency) /// /// The dependencies to match against. These can be namespaces or specific types. /// An updated set of conditions that can be applied to a list of types. - public PredicateList DoNotHaveDependencyOnAny(string[] dependencies) + public PredicateList DoNotHaveDependencyOnAny(params string[] dependencies) { _sequence.AddFunctionCall(FunctionDelegates.HaveDependencyOnAny, dependencies, false); return new PredicateList(_types, _sequence); @@ -522,7 +522,7 @@ public PredicateList DoNotHaveDependencyOnAny(string[] dependencies) /// /// The dependencies to match against. These can be namespaces or specific types. /// An updated set of conditions that can be applied to a list of types. - public PredicateList DoNotHaveDependencyOnAll(string[] dependencies) + public PredicateList DoNotHaveDependencyOnAll(params string[] dependencies) { _sequence.AddFunctionCall(FunctionDelegates.HaveDependencyOnAll, dependencies, false); return new PredicateList(_types, _sequence);