TNG/ArchUnitNET
A C# architecture test library to specify and assert architecture rules in C# for automated testing. observed · 2026-08-28
Health v2 · maintenance only
95/100
- Activity 99
- Release rhythm 86
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 48.0
- age_days: 2596
- days_rel: 14
- days_push: 7
- n_releases_24m: 13
Adoption not part of the score
1353 stars · 80 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
ArchUnitNET is a C# library for specifying and asserting architecture rules in automated tests, forked from Java's ArchUnit. It analyzes assemblies and checks dependencies between classes, members, and interfaces, with extensions for xUnit, NUnit, and MSTest.
Use cases
- enforce layered architecture rules in C# tests
- assert that classes in one namespace don't depend on another layer
- verify interfaces are only implemented by allowed classes
- run architecture rules as part of CI unit tests
- prevent forbidden assembly dependencies in .NET codebases
- codify coding conventions as automated tests
When to choose
- you have a .NET codebase and want architecture rules enforced automatically in tests
- you want an ArchUnit-style fluent API for C#
- you use xUnit, NUnit, or MSTest and want integrated architecture checks
When to avoid
- you work in Java or another non-.NET language (use ArchUnit instead)
- you need runtime dependency enforcement rather than test-time checks
- you need static analysis features like linting or code style checks
Facets
library · maturity active
testing developer-tools testing developer-tools programming-languages dotnet c architecture-tests archunit unit-testing code-structure-analysis xunit nunit mstest
1 source
- readme: https://github.com/TNG/ArchUnitNET · fetched 2026-08-28 · dc3d98fee158
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| TNG/ArchUnitNET | main | 95 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem