- open source
- free to use
Core package:
dotnet add package TngTech.ArchUnitNETFramework integration packages vary by test framework, for example:
dotnet add package TngTech.ArchUnitNET.xUnit
dotnet add package TngTech.ArchUnitNET.xUnitV3
dotnet add package TngTech.ArchUnitNET.MSTestV2
dotnet add package TngTech.ArchUnitNET.TUnitBefore adding packages, check whether the repo already references ArchUnitNET and which framework integration it uses:
rg -n "TngTech\\.ArchUnitNET" -g '*.csproj' .Load the target assemblies once, then assert rules in tests.
Good fit for:
- layered architecture
- namespace rules
- dependency restrictions
- domain boundary checks
- runs as part of the normal test suite
- richer than lightweight architecture-rule libraries, but also heavier
- when simple
NetArchTestrules already cover the needed constraints