Skip to content

Commit 776ebdb

Browse files
Merge pull request #379 from tnotheis/ResideInNamespaceMatching-and-ResideInAssemblyMatching-incorrectly-forward-call
ResideInNamespaceMatching and ResideInAssemblyMatching incorrectly forward call
2 parents 55ddf70 + 3dd4645 commit 776ebdb

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

ArchUnitNET/Fluent/Syntax/Elements/ShouldRelateToObjectsThat.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -896,7 +896,7 @@ public TRuleTypeShouldConjunction DoNotHaveName(string name)
896896
public TRuleTypeShouldConjunction DoNotHaveNameMatching(string pattern)
897897
{
898898
_ruleCreator.ContinueComplexCondition(
899-
ObjectPredicatesDefinition<TReferenceType>.DoNotHaveName(pattern)
899+
ObjectPredicatesDefinition<TReferenceType>.DoNotHaveNameMatching(pattern)
900900
);
901901
return Create<TRuleTypeShouldConjunction, TRuleType>(_ruleCreator);
902902
}

ArchUnitNET/Fluent/Syntax/Elements/Types/GivenTypesThat.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public TGivenRuleTypeConjunction ResideInNamespace(string fullName)
138138
public TGivenRuleTypeConjunction ResideInNamespaceMatching(string pattern)
139139
{
140140
_ruleCreator.AddPredicate(
141-
TypePredicatesDefinition<TRuleType>.ResideInNamespace(pattern)
141+
TypePredicatesDefinition<TRuleType>.ResideInNamespaceMatching(pattern)
142142
);
143143
return Create<TGivenRuleTypeConjunction, TRuleType>(_ruleCreator);
144144
}

ArchUnitNET/Fluent/Syntax/Elements/Types/TypeConditionsDefinition.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ public static ICondition<TRuleType> ResideInNamespace(string fullName)
534534
public static ICondition<TRuleType> ResideInNamespaceMatching(string pattern)
535535
{
536536
return new SimpleCondition<TRuleType>(
537-
type => type.ResidesInNamespace(pattern),
537+
type => type.ResidesInNamespaceMatching(pattern),
538538
obj => "does reside in " + obj.Namespace.FullName,
539539
"reside in namespace with full name matching \"" + pattern + "\""
540540
);

ArchUnitNET/Fluent/Syntax/Elements/Types/TypePredicatesDefinition.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ public static IPredicate<T> ResideInAssembly(string fullName)
368368
public static IPredicate<T> ResideInAssemblyMatching(string pattern)
369369
{
370370
return new SimplePredicate<T>(
371-
type => type.ResidesInAssembly(pattern),
371+
type => type.ResidesInAssemblyMatching(pattern),
372372
"reside in assembly with full name matching \"" + pattern + "\""
373373
);
374374
}
@@ -681,7 +681,7 @@ public static IPredicate<T> DoNotResideInNamespace(string fullName)
681681
public static IPredicate<T> DoNotResideInNamespaceMatching(string pattern)
682682
{
683683
return new SimplePredicate<T>(
684-
type => !type.ResidesInNamespace(pattern),
684+
type => !type.ResidesInNamespaceMatching(pattern),
685685
"do not reside in namespace with full name matching \"" + pattern + "\""
686686
);
687687
}
@@ -697,7 +697,7 @@ public static IPredicate<T> DoNotResideInAssembly(string fullName)
697697
public static IPredicate<T> DoNotResideInAssemblyMatching(string pattern)
698698
{
699699
return new SimplePredicate<T>(
700-
type => !type.ResidesInAssembly(pattern),
700+
type => !type.ResidesInAssemblyMatching(pattern),
701701
"do not reside in assembly with full name matching \"" + pattern + "\""
702702
);
703703
}

0 commit comments

Comments
 (0)