ArchUnitNET icon indicating copy to clipboard operation
ArchUnitNET copied to clipboard

A C# architecture test library to specify and assert architecture rules in C# for automated testing.

Results 78 ArchUnitNET issues
Sort by recently updated
recently updated
newest added

I want to use a plantuml both for documentation as well for tests with ArchUnitNet. Therefore my diagrams e.g. specificy the direction of the the relationship arrows. Furthermore I set...

kind/feature

When using ArchUnitNet in my project, I get following warning telling that the assembly has no strong name: warning CS8002: Referenced assembly 'ArchUnitNET, Version=0.10.6.0, Culture=neutral, PublicKeyToken=null' does not have a...

kind/feature

To simpify diagram it would be nice to support all grouping keywords - `package` - `node` - `folder` - `frame` - `cloud` - `database` For example in the folling diagram...

kind/feature

Given these example dependencies: ``` Module.One.Class1 -> Module.Two.Class1 Module.Two.Class2 -> Module.One.Class1 ``` a slice rule of ```Slices().Matching("Module.(*)").Should().BeFreeOfCycles()``` finds the dependency cycle. However, if you move Class2 into a sub-namespace, the...

kind/bug

kind/feature
triage/accepted

![image](https://user-images.githubusercontent.com/820550/221192728-2230ff62-20fa-492d-89a1-3fa51718aa86.png) I want to make sure that Application Services don't call other Application Services and call DomainServices instead. ```cs private IObjectProvider AppServices = Classes().That().HaveName(@"\S+AppService", true); //... Classes().That().Are(AppServices).Should().NotCallAny( MethodMembers().That().AreDeclaredIn(AppServices) ); ```...

kind/support

I have difficulties checking for unwanted system references - I failed to jot them down in a statically typed way. Consider: ``` IArchRule rule1 = Classes().Should().NotCallAny("System.DateTime::get_Now"); ``` This works but...

kind/feature

Hi I have a question about the package references. I want to check that my project has only two references nuget packages. How can I write a test to garantiere...

kind/support

Sorry, if the title sounds like an insult. It's just that the nuget version starts with a 0. that's usually an indicator for alpha or beta version. Can you pleas...

Consider the following test. It takes about 3 minutes to run. Can I reduce this time? ```csharp private static readonly Assembly[] AssembliesService = Assemblies .Where(r => r.FullName!.Contains("ind", StringComparison.OrdinalIgnoreCase) && r.FullName.Contains("service",...