TNG / ArchUnitNET

A C# architecture test library to specify and assert architecture rules in C# for automated testing.
Apache License 2.0
826 stars 55 forks source link

Adds a helper method to simplify the verification of dependencies #273

Open andreaslausen opened 2 weeks ago

andreaslausen commented 2 weeks ago

I created a method that really simpilifies the verification of dependencies at the assembly level. You just need to write var rule = Dependencies.Check(sourceAssembly, [targetAssembly1, targetAssembly2]), call rule.Check and you're done.

It would be awesome if this method would be integrated into ArchUnitNET.

thojaw commented 3 days ago

I like the idea, not sure though if such methods should be part of the core library, you could have many more and they could be part of your own Extensions. That would be different if you'd access some internal classes, for example. But hey, I'm just some random guy, not a maintainer :)