Closed kl1mm closed 2 years ago
I do not know what the author had in mind by restricting it only to private and public nested types, especially that in another place it is less restrictive:
I guess it is my mistake, since I am the one who wrote both methods :D .
Hi BenMorris, we ran into a problem when trying to validate our nested internal types, which we first filtered for ResideInNamespaceMatching.
After examining the NetArchTest code, we found the extension method TypeDefinitionExtensions.GetNamespace, which only checks IsNestedPrivate or IsNestedPublic. For testing, we changed our class from internal to private and it worked.