You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to be able to write Rules like
Assemblies().That().Rererence(...)
You can do that with types but then you can have the assembly reference and the test will not fail if no type is used.
privatestaticboolIsInTestAssembly(ITypetype)=>type.Assembly.Attributes.Any(a =>a.Name==nameof(TestAssemblyAttribute));privatestaticIObjectProvider<IType>TypesResidingingInTestAssemblies=Types().That().FollowCustomPredicate(IsInTestAssembly,"Are in test assembly.");
Reacted by Volodymyr Gaevoy, Joberto Diniz, Tomek Czarnecki, Thomas Levesque and Cyrille NDOUMBE
Activity
fgather commentedon Jan 14, 2022
Hi @DialLuesebrink , sounds like a good idea. Would you like to create a PR?
gaevoy commentedon May 20, 2022
@DialLuesebrink, check out an alternative option to verify dependencies.
https://gaevoy.com/2022/05/19/review-dependencies-on-every-commit.html
JobaDiniz commentedon Oct 26, 2023
@gaevoy this looks promising, how about integrating it into the
ArchUnitNETproject?