BenMorris / NetArchTest

A fluent API for .Net that can enforce architectural rules in unit tests.
MIT License
1.39k stars 82 forks source link

Check if namespace is consistent with file path #97

Open martinobordin opened 3 years ago

martinobordin commented 3 years ago

Hi, is it possible to define a rule to check if the namespace of a class is consistent with its file path?

i.e. file MyClass.cs inside MyCompany/MyLibrary/DataAccess should have the namespace MyCompany.MyLibrary.DataAccess