BenMorris / NetArchTest

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

correction Of #82 #95

Closed NeVeSpl closed 3 years ago

NeVeSpl commented 3 years ago

The simplest solution for #82 would be just always checking string literals for HaveDependencyOnAny and HaveDependencyOnAll, and never for OnlyHaveDependenciesOnAnyOrNone, OnlyHaveDependenciesOnAny, OnlyHaveDependenciesOnAll, HaveDependencyOtherThan.

In the future, it would be nice to give the user possibility to decide if he or she wants to look for dependencies in string literals, but for now, this will do the job.

The small change in test class shows problems created by PR #82, and PR #86. All test will pass after merging this PR and #94.