BenMorris / NetArchTest

A fluent API for .Net that can enforce architectural rules in unit tests.
MIT License
1.36k stars 81 forks source link

Add Support for BeInternal() and BePrivate() functions #131

Open ericvdberge opened 10 months ago

ericvdberge commented 10 months ago

I want to test if a class or constructor is private or internal only. I was thinking of function names like BeInternal() or BePrivate(). maybe also checking for constructors? I was thinking on functions like Types.InAssembly(_applicationAssembly) .That().HasConstructor().Should().BeInternal()